1244| 3
|
[已解决]for语句 |
30鱼币
最佳答案#include
int main()
{
int i, j, k;
for (i = 0; i < 5; i++)
{
for (j = 0; j < 5; j++)
{
if (i == 2 ||(j == 1 && i == 4 )||( i == 3 && (j == 1 || j == 0 || j == 2 ))||(j == 1 && i == 0)|| (i == 1 && (j == 1 || j == 0 || j == 1 || j == 2)) )
printf("*");
else
printf(" ");
}
printf("\n");
}
return 0;
}
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
发表于 2021-12-9 15:16:56
|
显示全部楼层
本楼为最佳答案
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
发表于 2021-12-9 17:29:11
|
显示全部楼层
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
发表于 2021-12-9 22:24:03
|
显示全部楼层
评分
| ||||||||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||||||||
小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)
GMT+8, 2025-1-9 15:31
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.