Program Looping

4/11/2011 To Live, To Travel 0 Comments

CONTOH Program LOOPING 

main()
{
int x,y,n,z;
clrscr();
n=25;
for(x=0; x<n; x++){
for(y=0; y<n-x; y++){
z=(n-x-y);
printf("%dx+%dy+%dz=25\n",x,y,z);}
}
getch();
}






0 komentar: