Q:

Write a Ruby program to find the maximum of two numbers

0

Write a Ruby program to find the maximum of two numbers.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Ruby Code:

x= 6
y =8
max = x>y ? x:y
puts "Max = "+max.to_s
Output:
Max = 8

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now