> 其他 >
用C语言输出以下三角形形式的如下图案 编码是什么
* * *
* *
*
人气:469 ℃ 时间:2019-08-16 22:23:19
解答
先来个:
#include"stdio.h"
main()
{
int i,j;
for(i=3;i>=1;i--){
for(j=3;j>=4-i;j--)
printf("*");
printf("\n");
}
}
再来个酱油:
#include"stdio.h"
#include"conio.h"
int main()
{
printf("***\n");
printf("**\n");
printf("*\n");
getch();

}
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版