Saturday 1 June 2013


Image
#include<iostream.h> 
void main() 
{ for(int i=0;i<10;i++) 
{ cout<<"*";
 if(i==0) 
{for(int j=0;j<10;j++) 
cout<<"*"; 
else if
(i==9) 
{
for(int j=0;j<10;j++) 
cout<<"*"; 
else 
{for(int j=0;j<10;j++) 
cout<<" "; 
cout<<"*"<<endl;
}

0 comments:

Post a Comment

Subscribe to RSS Feed Follow me on Twitter!