Saturday 1 June 2013


Image

#include<iostream.h> 
for(int i=0;i<10;i++) 
{ cout<<"*";
 if(i==0||i==5||i==9)
{
for(int j=0;j<5;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!