Ruby - Control Flow
What is the output of this Ruby code?
num = 7 puts num.even? ? "Even" : "Odd"
num = 7 puts num.even? ? "Even" : "Odd"
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions