#include <stdio.h> int main() { int i, space, rows, k=0; printf('Enter number of rows: '); scanf('%d', &rows); for(i=1; i<=rows; ++i, k=0) { for(space=1; space<=rows-i; ++space) { printf(' '); } while(k != 2i-1) { printf(' '); ++k; } printf('\n'); } return 0; }

输出图形内容: Enter number of rows: 5 * * * * * * * * *



C语言程序:绘制等腰三角形图案

原文地址: https://www.cveoy.top/t/topic/m0oH 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录