[問題] 迴圈
求救,小弟是c的新手,請問怎樣用巢狀for畫出
**
****
******
(謝謝
for(i=1;i<=3;i++)
{
for(k=1; )
{
printf(" ");
printf("\n");
}
for(j=1; )
{printf("*");
printf("\n");
}
}
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 120.109.151.67
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1450155224.A.463.html
12/15 13:04
※ 編輯: djljing (120.109.151.67), 12/15/2015 13:06:34
噓
12/15 13:08, , 1F
12/15 13:08, 1F
※ 編輯: djljing (120.109.151.67), 12/15/2015 13:20:41
→
12/15 13:14, , 2F
12/15 13:14, 2F
※ 編輯: djljing (120.109.151.67), 12/15/2015 13:24:48
噓
12/15 13:32, , 3F
12/15 13:32, 3F
→
12/15 14:03, , 4F
12/15 14:03, 4F
→
12/15 14:08, , 5F
12/15 14:08, 5F
→
12/15 14:08, , 6F
12/15 14:08, 6F
推
12/15 15:52, , 7F
12/15 15:52, 7F
推
12/15 16:23, , 8F
12/15 16:23, 8F
推
12/15 17:37, , 9F
12/15 17:37, 9F
推
12/15 17:41, , 10F
12/15 17:41, 10F
→
12/15 17:41, , 11F
12/15 17:41, 11F
→
12/15 18:42, , 12F
12/15 18:42, 12F
→
12/15 18:45, , 13F
12/15 18:45, 13F
推
12/15 18:47, , 14F
12/15 18:47, 14F
噓
12/15 21:24, , 15F
12/15 21:24, 15F
討論串 (同標題文章)
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章