#include<bits/stdc++.h> using namespace std; int main() { int i,n,j; cin>>n; int s=n,x=1;; for(i=0;i<=n/2;i++){ for(j=0;j<=s/2;j++) cout<<"*"; cout<<endl; s-=2; } for(i=0;i<n/2;i++){ for(j=0;j<=x;j++) cout<<"*"; cout<<endl; x++;} return 0; } /************************************************************** Problem: 1230 User: lijinkai Language: C++ Result: Accepted Time:7 ms Memory:2072 kb ****************************************************************/