标签:while stdin image 个数 images int std open http
#include<stdio.h> int main() { int n; int i,j,k; freopen("in.txt","r",stdin); freopen("out.txt","w",stdout); while(scanf("%d",&n)!=EOF) for(i=1;i<=n;i++)//行的循环 { for(j=1;j<i;j++)//每行的空格数 printf(" "); for(k=i;k<=2*n-i;k++)//每行的"#"的个数 { printf("#"); } printf("\n"); } return 0; }
标签:while stdin image 个数 images int std open http
原文地址:http://www.cnblogs.com/2228212230qq/p/7821511.html