首页 > 其他 > 详细

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

时间:2019-06-30 18:54:27      阅读:190      评论:0      收藏:0      [点我收藏+]

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;
}

 

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!