编写打印如下图形的程序 (必须用循环语句实现) * ** *** **** *****
空格*
**
***
****
*****
一个三角形~
人气:480 ℃ 时间:2020-02-05 10:54:30
解答
#include
void main()
{
int i, j;
for (i = 0; i < 5; ++i)
{
for (j = 0; j < 5; ++j)
{
if (j < 4-i)
printf(" ");
else
printf("*");
}
printf("\n");
}
}
推荐
猜你喜欢
- A、B都是正整数,如果A除以B等于10,那么A、B的最小公倍数是几谢谢了,
- The words of his old teacher left a ______ impression on his mind.He is still influenced by them.
- 有关交通安全的作文600字
- 举例说出“经过两点且只有一条直线”和“两点之间,线段最短”这两个结论在实际生活中的运用
- 在某张月历上,一个月内是五个星期日正好在同列,且它们的日期数之和是80,则本月第一个星期一是__号?
- each other for a change是什么意思
- "Bill,is this_____bike?" "Yes,it is."
- 翻译 Happiness is not wishing for what we dont have,but enjoying what we do possess