2-3 输出倒三角图案 (5 分)

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

输入格式:

本题目没有输入。

输出格式:

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

* * * *
 * * *
  * *
   *

 

1 #include <stdio.h>
2 #include <stdlib.h>
3 
4 /* run this program using the console pauser or add your own getch, system("pause") or input loop */
5 
6 int main(int argc, char *argv[]) {
7 printf("* * * *\n * * *\n  * *\n   *") ;
8 return 0;
9 }

 

相关文章:

  • 2022-12-23
  • 2021-05-23
  • 2021-06-15
  • 2022-12-23
  • 2022-01-01
  • 2021-07-05
  • 2021-11-15
  • 2021-05-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-12
相关资源
相似解决方案