fork download
  1. echo "10まで数える: "
  2. var i = 1
  3. while i <= 10:
  4. echo ($i)
  5. inc(i) # iを1だけインクリメントする。
  6. # --> 1 2 3 4 5 6 7 8 9 10 をそれぞれ別の行に出力する。
Success #stdin #stdout 0s 2432KB
stdin
Standard input is empty
stdout
10まで数える: 
1
2
3
4
5
6
7
8
9
10