Ruby - Control Flow
What is the output of this Ruby code?
age = 20 puts age >= 18 ? "Adult" : "Minor"
age = 20 puts age >= 18 ? "Adult" : "Minor"
age >= 18 is true because age is 20.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions