Experiment 1-4 Output the triangle (5 points)

This question requires writing a program to output the specified triangle pattern consisting of "*".

Input format:
No input for this question

Output format:
output the triangle pattern composed of "*" according to the following format.

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

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

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_43862765/article/details/114312432