Tampilkan postingan dengan label programming. Tampilkan semua postingan
Tampilkan postingan dengan label programming. Tampilkan semua postingan
Selasa, 10 Desember 2013
Rabu, 27 November 2013
Arithmetic
# include
int main()
int i;
i = 5;
printf("The Value of i is :
%d", i);
i = i + 5;
printf("\nThe Value of i is :
%d", i);
i = i - 2;
printf("\nThe Value of i is :
%d", i);
i = i * 2;
printf("\nThe Value of i is : %d", i);
i = i / 4; printf("\nThe Value of i is : %d", i);
i++;
printf("\nThe Value of i is : %d", i);
i++; printf("\nThe Value of i is : %d", i);
i --; printf("\nThe Value of i is : %d", i);
getchar();
return(0) ;
}
int main()
int i;
i = 5;
%d", i);
i = i + 5;
printf("\nThe Value of i is :
%d", i);
i = i - 2;
printf("\nThe Value of i is :
%d", i);
i = i * 2;
printf("\nThe Value of i is : %d", i);
i = i / 4; printf("\nThe Value of i is : %d", i);
i++;
printf("\nThe Value of i is : %d", i);
i++; printf("\nThe Value of i is : %d", i);
i --; printf("\nThe Value of i is : %d", i);
getchar();
return(0) ;
}
Arithmetic
# include
int main()
int i;
i = 5;
printf("The Value of i is :
%d", i);
i = i + 5;
printf("\nThe Value of i is :
%d", i);
i = i - 2;
printf("\nThe Value of i is :
%d", i);
i = i * 2;
printf("\nThe Value of i is : %d", i);
i = i / 4; printf("\nThe Value of i is : %d", i);
i++;
printf("\nThe Value of i is : %d", i);
i++; printf("\nThe Value of i is : %d", i);
i --; printf("\nThe Value of i is : %d", i);
getchar();
return(0) ;
}
int main()
int i;
i = 5;
%d", i);
i = i + 5;
printf("\nThe Value of i is :
%d", i);
i = i - 2;
printf("\nThe Value of i is :
%d", i);
i = i * 2;
printf("\nThe Value of i is : %d", i);
i = i / 4; printf("\nThe Value of i is : %d", i);
i++;
printf("\nThe Value of i is : %d", i);
i++; printf("\nThe Value of i is : %d", i);
i --; printf("\nThe Value of i is : %d", i);
getchar();
return(0) ;
}
Senin, 25 November 2013
2D ANIMATION
#include
#include
#include
#include
#include
void main()
{
clrscr();
int gd=DETECT,gm;
initgraph(&gd,&gm,"D:\\TC\\BGI");
float x1,y1,r;
cout<<"Enter The Radius of The Circle : ";
cin>>r;
cout<<"Enter Center Of Circle : ";
cin>>x1>>y1;
circle(x1,y1,r);
float ang2=1/2;
int i=5000;
do
{
ang2=ang2+(1/r);
int x3,x4,x5,x6,y3,y4,y5,y6;
x3=x1+r*sin(ang2);
y3=y1-r*cos(ang2);
x4=x1+r*sin(ang2+3.1415927);
y4=y1-r*cos(ang2+3.1415927);
x5=x1+r*sin(ang2+1.5707963);
y5=y1-r*cos(ang2+1.5707963);
x6=x1+r*sin(ang2+4.7123890);
y6=y1-r*cos(ang2+4.7123890);
setcolor(2);
line(x3,y3,x4,y4);
setcolor(4);
line(x5,y5,x6,y6);
delay(5);
i--;
}while(i>0);
closegraph();
}
Kamis, 21 November 2013
Add Two numbers
package TestPackage;
import java.util.Scanner;
class AddNumbers {
private static Scanner in;
public static void main(String args[]) {
int x, y, z;
System.out.println("Enter two integers to calculate their sum ");
in = new Scanner(System.in);
x = in.nextInt();
y = in.nextInt();
z = x + y;
System.out.println("Sum of entered integers = " + z);
}
}
Kamis, 14 November 2013
Tutorial membuat aplikasi Android
Blog tetangga yang bermanfaat ,terutam untuk kalian yang mendalami ilmu d bidang programming atau pemprograman komputer.Dan sengaja saya membagikan link ini untuk di poskan kembali.Singkat saja penjelasan saya ini dan berikut adalah linknya,semoga bermanfaat. http://www.twoh.web.id/2012/12/tutorial-membuat-aplikasi-android/
Langganan:
Postingan (Atom)