166k views
0 votes
Write a program which will ask the user to input a floating point number corresponding to temperature. We will assume the temperature was in Celsius degrees and display its equivalent in Fahrenheit degrees after computing it using the following formula Fahrenheit = ( 9.0 / 5.0 ) * Celsius + 32

User Deleted
by
8.0k points

1 Answer

4 votes

// writing c++ code...

// taking input

cout<< " Enter the floating point number : ";

cin>>fnumber;

// calculating the Fahrenheit temp

far_temp= (9.0/5.0) * fnumber +32;

cout<<" Fahrenheit = "<< far_temp;

User Rango
by
7.6k points