2011年1月9日 星期日

[C]for迴圈使用

  1. int i;  //需在外宣告
  2. for (i = 0; i < 10; i++) {
  3.   printf("%d", i);
  4. }
output 123456789

沒有留言:

張貼留言