What is the output of the given code?
a = 22.5
while a >11.5
puts a
a-=3.5
end
a = 22.5
while a >11.5
puts a
a-=3.5
end
A. 22.5 19.0 15.5 12.0
B. 22.5 11.5
C. 100..5
D. None of the mentioned
Answer: Option B
a = 22.5
while a >11.5
puts a
a-=3.5
end
A. 22.5 19.0 15.5 12.0
B. 22.5 11.5
C. 100..5
D. None of the mentioned
Answer: Option B
Join The Discussion