Celsius to Fahrenheit in Ruby

Program to convert temperature from degree centigrade to Fahrenheit.

Source code :

celcius = 32; # Change the celcius here

fahrenheit = 1.8* celcius + 32
 
puts "Fahrenheit : " + fahrenheit.to_s

Output :

Fahrenheit : 89.6

Output :


                

Comments :