Problem Description
通过使用双重for循环语句,打印下列图形:
Input
Output
Example Input
Example Output
* *** ***** ******* ***** ****
#include <stdio.h> int main() { int n,i,j,k; n=4; for(i=1;i<=n;i++) { for(j=n;j>i;j--) { printf(" "); } for(k=1;k<=i;k++) { printf("*"); }