题解 | 正斜线形图案
正斜线形图案
https://www.nowcoder.com/practice/61ef68d129534dfbb04b232e1244e447
#include <stdio.h> int main() { int n; while(scanf("%d",&n)!=EOF) { for(int i=1;i<=n;i++)行的数量 { for(int j=n-i;j>=1;j--) { printf(" ");先打出空格 } printf("*"); printf("\n"); } } return 0; }