include "stdio.h"main(){ int n,i,j,k;printf("请输入一个正整数 n=\n");scanf("%d",&n);for(i=1;i<=n;i++){ for(j=1;j<2*n-i;j++) putchar(' ');for(k=1; k<=2*i-1; k++) putchar('*');putchar('\n');} for(i=n-1;i>0;i--){ for(j=1;j<2...
include<stdio.h> main(){ int i,n,j;printf("请输入数值:");scanf("%d",&n);for(i=0;i<n;i++){ for(j=n-i;j>0;j--){ printf(" ");} for(j=2*(n-i)-1;j<2*n;j++){ printf("*");} printf("\n");} for(i=n-1;i>0;i--){ for(j=n-i+1;j>0;j-...