Find Here !!!

Sunday, 23 March 2014

Program C++ menggunakan FOR Bersarang membuat Kotak

Kotak Angka 

__________________________________________________________

#include<iostream.h>

main()
{
int a,b,x=1;
cout<<" soal no 1 kiri\n\n";
for(a=1;a<=5;a++)
{
for(b=1;b<=5;b++)
{
cout<<x<<" ";

x=x+1;
}
cout<<endl;
x=a+1;
}

cout<<" \n\n\n";
cout<<" @Bang_Ambo";
}
_____________________________________________________
Semoga Bermanfaat :)

No comments:

Post a Comment