main() { int i; for(i=0;i<=N;i++) { printf("%*.*s%-*.*s\n",N,i<=N/2?i:N-i,"*******************",N,i<=N/2?i+1:N -i+1,"*******************"); } } |
|
来自: ShangShujie > 《c》