标签:div style print printf cst cstring 二维 logs 空格
#include<iostream> #include<cstdio> #include<cstring> using namespace std; main() { int n,i,j; scanf("%d",&n); for(i=n-1;i>=0;i--){ for(j=0;j<n-i-1;j++){ printf(" ");//先把二维全置为空格 } for(j=0;j<2*i+1;j++){//把所需位置置为# printf("#"); } printf("\n"); } }
https://wenku.baidu.com/view/0febf66859fafab069dc5022aaea998fcc2240aa.html
标签:div style print printf cst cstring 二维 logs 空格
原文地址:http://www.cnblogs.com/Roni-i/p/7191020.html