C++ PRINT |
#include < iostream >
using namespace std;
int main()
{
int i,j,l,q,r;
char x = '*';
char z = ' ';
for ( i = 1; i <= 5; i = i + 1)
{
cout << x;
}
cout << "\n";
for ( l = 1; l <= 3; l = l+ 1)
{
cout << x;
cout << "\n";
}
for ( i = 1; i <= 5; i = i + 1)
{
cout << x;
}
cout << "\n";
for ( q = 1; q <= 3; q = q + 1)
{
for ( r = 1; r <= 5; r = r + 1)
{
if ( r > 4)
cout << x;
else
cout << z;
}
cout << "\n";
}
for ( i = 1; i <= 5; i = i + 1)
{
cout << x;
}
cout <<"\n";
cout <<"\n";
cout <<"\n";
for ( i = 1; i <= 5; i = i + 1)
{
cout << x;
}
cout << "\n";
for(i=1; i<=3;i= i+1)
{
for ( j = 1; j <= 5; j = j + 1)
{
if(j==1 || j==5)
{
cout << x;
}
else
{
cout << z;
}
}
cout << "\n";
}
for ( i = 1; i <= 5; i = i + 1)
{
cout << x;
}
cout << "\n";
for(i=1; i<=3;i= i+1)
{
for ( j = 1; j <= 5; j = j + 1)
{
if(j==1 || j==5)
{
cout << x;
}
else
{
cout << z;
}
}
cout << "\n";
}
cout << "\n";
cout << "\n";
for ( i = 1; i <= 5; i = i + 1)
{
cout << x;
}
cout << "\n";
for(i=1; i<=5;i= i+1)
{
for ( j = 1; j <= 3; j = j + 1)
{
if(j==3 )
{
cout << x;
}
else
{
cout << z;
}
}
cout << "\n";
}
for ( i = 1; i <= 5; i = i + 1)
{
cout << x;
}
cout<<"\n";
cout<<"\n";
for(i=1; i<=1;i= i+1)
{
for ( j = 1; j <= 7; j = j + 1)
{
if(j==1 || j==7)
{
cout << x;
}
else
{
cout << z;
}
}
cout << "\n";
}
for(i=1; i<=1;i= i+1)
{
for ( j = 1; j <= 7; j = j + 1)
{
if(j==1 || j==2 || j==6 || j==7)
{
cout << x;
}
else
{
cout << z;
}
}
cout << "\n";
}
for(i=1; i<=1;i= i+1)
{
for ( j = 1; j <= 7; j = j + 1)
{
if(j==1 || j==3 || j==5 || j==7)
{
cout << x;
}
else
{
cout << z;
}
}
cout << "\n";
}
for(i=1; i<=1;i= i+1)
{
for ( j = 1; j <= 7; j = j + 1)
{
if(j==1 || j==4 || j==7)
{
cout << x;
}
else
{
cout << z;
}
}
cout << "\n";
}
for(i=1; i<=1;i= i+1)
{
for ( j = 1; j <= 7; j = j + 1)
{
if(j==1 || j==7)
{
cout << x;
}
else
{
cout << z;
}
}
cout << "\n";
}
cout<< "\n";
cout<< "\n";
for(i=1; i<=4;i= i+1)
{
for ( j = 1; j <= 6; j = j + 1)
{
if(j==1 || j==6)
{
cout << x;
}
else
{
cout << z;
}
}
cout << "\n";
}
for ( i = 1; i <= 6; i = i + 1)
{
cout << x;
}
cout<<"\n";
cout<<"\n";
for(i=1; i<=1;i= i+1)
{
for ( j = 1; j <= 5; j = j + 1)
{
if(j==1 || j==5)
{
cout << x;
}
else
{
cout << z;
}
}
cout << "\n";
}
for(i=1; i<=1;i= i+1)
{
for ( j = 1; j <= 5; j = j + 1)
{
if(j==1 || j==2 || j==5)
{
cout << x;
}
else
{
cout << z;
}
}
cout << "\n";
}
for(i=1; i<=1;i= i+1)
{
for ( j = 1; j <= 5; j = j + 1)
{
if(j==1 || j==3 || j==5)
{
cout << x;
}
else
{
cout << z;
}
}
cout << "\n";
}
for(i=1; i<=1;i= i+1)
{
for ( j = 1; j <= 5; j = j + 1)
{
if(j==1 || j==4 || j==5)
{
cout << x;
}
else
{
cout << z;
}
}
cout << "\n";
}
for(i=1; i<=1;i= i+1)
{
for ( j = 1; j <= 5; j = j + 1)
{
if(j==1 || j==5 || j==5)
{
cout << x;
}
else
{
cout << z;
}
}
cout << "\n";
}
return 0;
}
Post a Comment