我郁闷了~知识有限用for语句写的 怎么会出现这样的问题 是for基础知识不懂?
程序代码:
# include <stdio.h> int main(void) { int k, i, j, x; printf("请输入一个数:"); scanf("%d",&x); for (i = 0;i<=(x-4); i++) { for (k = 1;k <= i; k++) printf(" "); for (j = 0;j<x-i*2; j++) printf("*"); printf("\n"); } return 0; }
墨一世红颜倾醉己 霁天谁与话风流
修仙``````````````````````````````````````````````