C++ Solusi Penjumlahan 25
Sabtu, 12 Juli 2014
Add Comment
#include<iostream.h>
#include<conio.h>
main(){
int x,y,z;
clrscr();
for(x=0;x<=25;x++){
for(y=0;y<=25;y++){
for(z=0;z<=25;z++){
if(x+y+z==25)
cout<<x<<"+"<<y<<"+"<<z<< " = 25"<<endl;
}
}
}
getch();
}
#include<conio.h>
main(){
int x,y,z;
clrscr();
for(x=0;x<=25;x++){
for(y=0;y<=25;y++){
for(z=0;z<=25;z++){
if(x+y+z==25)
cout<<x<<"+"<<y<<"+"<<z<< " = 25"<<endl;
}
}
}
getch();
}
0 Response to "C++ Solusi Penjumlahan 25"
Posting Komentar