7-5 Output inverted triangle pattern

7-5 Output inverted triangle pattern

topic

This question requires writing a program to output the specified inverted triangle pattern composed of "*".
Input format:

This question is not entered.
Output format:

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

* * * *
 * * *
  * *
   *

Code

#include<stdio.h>

int main(){
	printf("* * * *\n * * *\n  * *\n   *");
	return 0;
} 
Published 21 original articles · praised 0 · visits 39

Guess you like

Origin blog.csdn.net/weixin_47127378/article/details/105565586