Ruby - Control Flow
What will be the output of this Ruby code?
num = 15 if num > 20 puts "Greater than 20" elsif num > 10 puts "Greater than 10" else puts "10 or less" end
What will be the output of this Ruby code?
num = 15 if num > 20 puts "Greater than 20" elsif num > 10 puts "Greater than 10" else puts "10 or less" end
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions