Saturday, 17 November 2012

Pattern Print code


*******
******
*****
****
***
**
*


#include <iostream>
#include <math.h>
using namespace std;
int main()
{
for (int i=7;i>=1;i--)
{
for(int j=1;j<=i;j++)
cout <<"*";
cout<<endl;
}
return 0;
}

No comments:

Post a Comment