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

时间:2019-06-30 18:54:27   收藏:0   阅读:195

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

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

输入格式:

本题目没有输入。

输出格式:

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

* * * *
 * * *
  * *
   *

 

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

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char *argv[]) {
printf("* * * *\n * * *\n * *\n *") ;
return 0;
}

 

原文:https://www.cnblogs.com/xxl-h/p/11110689.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!