fork(1) download
  1. # Write a program that prints out,
  2. # in reverse order, every multiple
  3. # of 3 between 1 and 200.
  4.  
  5. a = []
  6. 200.times do | i |
  7. a << i if i % 3 == 0 && i > 1
  8. end
  9. puts a.reverse
  10.  
Success #stdin #stdout 0s 4760KB
stdin
Standard input is empty
stdout
198
195
192
189
186
183
180
177
174
171
168
165
162
159
156
153
150
147
144
141
138
135
132
129
126
123
120
117
114
111
108
105
102
99
96
93
90
87
84
81
78
75
72
69
66
63
60
57
54
51
48
45
42
39
36
33
30
27
24
21
18
15
12
9
6
3