#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int n = 7;
int m = 1;
int x = 6;
for (int i = 0; i < 3; i++)
{
cout << setw(x);
x--;
for (int j = 0; j < m; j++)
cout << "*";
cout << endl;
m=m+2;
}
for (int i = 0; i < 4; i++)
{
cout << setw(x);
x++;
for (int j = 0; j < n; j++)
cout << "*";
cout << endl;
n=n-2;
}
cin.get();
return 0;
}
Thursday, 24 January 2013
diamond
08:17
ATEEK
No comments
0 comments:
Post a Comment