Experiment 1-8 Output the inverted triangle pattern (5 points)

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

Input format:

This question has not been entered.

Output format:

The inverted triangle pattern composed of "*" is output in the following format.

* * * *
 * * *
  * *
   *

Code:

# include <stdio.h>
# include <stdio.h>

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

Submit screenshot:

Insert picture description here

Guess you like

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