0
Explain this output please.
Got this in one of the challenge questions.... for i in 1 .. 5 next if i % 2 == 0 print i end Output : 135 How?? Detailed explanations are very much welcome :)
1 Answer
+ 2
Srishti Chhabra , it skips even numbers => in the if condition. That's why it prints the even numbers in the range 1-5.