PTA3-1

3-1  输出倒三角图案 (10 分)

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

输入格式:

本题目没有输入。

输出格式:

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

* * * *
 * * *
  * *
   *

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

int main()
{
printf("* * * *\n");
printf(" * * *\n");
printf(" * *\n");
printf(" *\n");

return 0;
}

 

猜你喜欢

转载自www.cnblogs.com/hjn123hjn/p/9880245.html