Re: [問題] 迴圈
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i,j;
for(i=2;i<=6;i+=2)
{
for(j=1;j<=(6-i)/2;j++) printf(" ");
for(j=1;j<=i;j++) printf("*");
printf("\n");
}
system("pause");
return 0;
}
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 27.246.214.227
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1450167110.A.971.html
→
12/15 16:39, , 1F
12/15 16:39, 1F
→
12/15 17:11, , 2F
12/15 17:11, 2F
→
12/15 18:27, , 3F
12/15 18:27, 3F
討論串 (同標題文章)