Find Here !!!

Wednesday, 19 March 2014

Program C++ membuat Kotak Tengah Bolong

Kotak Tengah Bolong

_______________________________________________________
#include<iostream.h>

main()
{
int a,b,c;

for(a=1;a<=10;a++)
{cout<<"*";
}
cout<<endl;



for(b=1;b<=5;b++)
{cout<<"*";
for(c=1;c<=8;c++)
{cout<<" ";
}
cout<<"*";
cout<<endl;
}
for(a=1;a<=10;a++)
{cout<<"*";
}
cout<<endl;

}

_________________________________________________________

 Semoga Berguna ;)

No comments:

Post a Comment