Ruby - Control Flow
What will be the output of this Ruby code?
temperature = 68 case temperature in 80..100 then puts 'Hot' in 60..79 then puts 'Warm' in 40..59 then puts 'Cool' else puts 'Cold' end
What will be the output of this Ruby code?
temperature = 68 case temperature in 80..100 then puts 'Hot' in 60..79 then puts 'Warm' in 40..59 then puts 'Cool' else puts 'Cold' end
temperature is 68.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions