fork download
  1. <?php
  2.  
  3. $nominator = 1;
  4. $denominator = 2;
  5.  
  6. for ($nominator = 1, $denominator = 50; $nominator < 50 && $denominator > 0; $nominator++, $denominator--) {
  7. echo $nominator . '/' . $denominator . PHP_EOL;
  8. }
Success #stdin #stdout 0.01s 82560KB
stdin
Standard input is empty
stdout
1/50
2/49
3/48
4/47
5/46
6/45
7/44
8/43
9/42
10/41
11/40
12/39
13/38
14/37
15/36
16/35
17/34
18/33
19/32
20/31
21/30
22/29
23/28
24/27
25/26
26/25
27/24
28/23
29/22
30/21
31/20
32/19
33/18
34/17
35/16
36/15
37/14
38/13
39/12
40/11
41/10
42/9
43/8
44/7
45/6
46/5
47/4
48/3
49/2