fork(2) download
  1. echo "10から1にカウントダウンする: "
  2. for i in countdown(10, 1):
  3. echo ($i)
  4. # --> Outputs 10 9 8 7 6 5 4 3 2 1 on different lines
Success #stdin #stdout 0s 2432KB
stdin
Standard input is empty
stdout
10から1にカウントダウンする: 
10
9
8
7
6
5
4
3
2
1