Exercise 2-3 of the title collection of "C Language Programming (3rd Edition)" of Zhejiang University

Exercise 2-3 Output the inverted triangle pattern (5 points)

This question requires writing a program to output the designated inverted triangle pattern consisting of "*".
Input format:
There is no input for this question.
Output format:
output the inverted triangle pattern composed of "*" according to the following format.
Insert picture description here
Author
Chen Jianhai
Unit
Zhejiang University

Code length limit
16 KB
Time limit
400 ms
Memory limit
64 MB

#include <stdio.h>

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

Guess you like

Origin blog.csdn.net/DoMoreSpeakLess/article/details/109215771