Square Shape Code

7/08/2014 01:08:00 pm Unknown 0 Comments





#include<iostream.h>
using namespace std;
int main()
{
     for(int i=1;i<=10;i++)
        {
            cout<<"*";
        }
            cout<<endl;
for(int j=1;j<=5;j++)
    {
    for(int k=1;k<=1;k++)
        {
                cout<<"*";
        }
        for(int l=1;l<=8;l++)
              {
                cout<<" ";
              }
                cout<<"*"<<endl;
       }
for(int m=1;m<=10;m++)
 {
 cout<<"*";

 }
 cout<<endl<<endl;
// return 0;
 system("pause");
}