main(){. int i,j,n;. scanf("%d",&n);/*輸入行數n*/. for (i=1;i<=n;i++){. for (j=1;j<=n-i;j++) putchar(32);/*每一行前面有n-i個空格*/.
確定! 回上一頁