#include <iostream>
using namespace std;
int main()
{
int size,counter=0;
cout<<"------------------------------------------------------------------------------\n";
cout<<"This programme will print a specific * pattern on entering number greater than 1\n";
cout<<"------------------------------------------------------------------------------\n";
do
{
cout<<"Enter size : ";
cin>>size;
}
while(size<=1);
{
for(int i=1;i<=size;i++)
{
for(int j=1;j<=size;j++)
{
cout<<"*";
}
cout <<endl;
for(int k=0;k<=counter;k++){
cout<<" ";}
counter++;
}
cout<<endl;
}
cout<<"\n\n------------------------------------------------------------------------------\n";
cout<<"Thank You for using.\n\nVisit http://bilalzahid22.blogspot.com/ for more\n";
cout<<"\n------------------------------------------------------------------------------\n";
}


0 comments:
Post a Comment