Quiz: Fun Math
Test the knowledge you've gained in this section by trying this quiz.
1
What is the output of the following code?
(1..10).each do |x|
if (x == 2 || x == 4 || x==5)
print x
break
end
end
A)
2
B)
24
C)
245
D)
13
Question 1 of 40 attempted
Get hands-on with 1400+ tech skills courses.