标签:print amp include printf scan can span std ret
1 #include<stdio.h> 2 int main() 3 { 4 int n,k,x; 5 scanf("%d",&n); 6 for(k=2*n-1,x=0;k>0,x<n;k-=2,x++) 7 { 8 for(int j=x;j>0;j--) 9 printf(" "); 10 for(int i=k;i>0;i--) 11 printf("*"); 12 printf("\n"); 13 } 14 return 0; 15 }
标签:print amp include printf scan can span std ret
原文地址:http://www.cnblogs.com/zreo/p/6192484.html