Ruby program to convert days to hours


Following program shows you how to convert days to hours.
In this program we get days from user, once we get those we need to multiply with 24 so that we get in hours

puts "Please enter days:"
 days = gets.to_i
 hours = days * 24
 puts "#{hours} Hours"

Output:

Please enter days:
20
480 Hours