Q:

Write a Ruby program which accept the user's first and last name and print them in reverse order with a space between them

0

Write a Ruby program which accept the user's first and last name and print them in reverse order with a space between them.

All Answers

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

 

def in2030(a, b)
   return ((a >= 20 && a <= 30) || (b >= 20 && b <= 30));	
end

print in2030(15, 99),"\n"
print in2030(25, 28),"\n"

Output:

false
true.

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