标签:style return 九度oj print nbsp code turn pre scan
#include<cstdio> int main(){ int h; scanf("%d",&h); int blanks; int num; for(int i=0;i<h;i++){ num=h+i*2; blanks=(3*h-2)-2*i-h; while(blanks--) printf(" "); while(num--){ printf("*"); if(num==0) printf("\n"); } } return 0; }
标签:style return 九度oj print nbsp code turn pre scan
原文地址:http://www.cnblogs.com/kprac/p/7074264.html