实验1-4 输出三角形 (5 分)

本题要求编写程序,输出指定的由“*”组成的三角图案。

输入格式:
本题无输入

输出格式:
按照下列格式输出由“*”组成的三角图案。

****
***
**
*
# include <stdio.h>
# include <stdlib.h>

int main(){
    
    
	printf("****\n***\n**\n*\n");
	return 0;
} 

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_43862765/article/details/114312432