소스 Code ¶
~cpp #include <iostream> using namespace std; int main() { int i; int a,b,c,d; for (i=1; i<11; i++) { for (a=1; a<1+i; a++) cout << "*"; for (b=1; b<12-i; b++) cout << " "; for (c=1; c<12-i; c++) cout << "*"; for (d=1; d<2*i; d++) cout << " "; for (c=1; c<12-i; c++) cout << "*"; for (b=1; b<12-i; b++) cout << " "; for (a=1; a<1+i; a++) cout << "*"; cout << endl; } return 0; }