用C語言在屏幕上輸出如下圖案: * *** ***** ******* ********* *********** ************* ***********

#include <stdio.h> int main() { for (int x = 1; x<8; x++){ for(int y=1;y<=2*x-1;y++){ printf("*"); } printf("\n"); } for (int x = 6; x>0; x--){ for(int y=1;y
相關文章
相關標籤/搜索