I'm writing a code for class that prompts the user if they want to convert Celsius to Fahrenheit and vice versa. But I can't seem to figure out how why my output is always a round number I've tried float, double, int. All this while only using if and else if. any bit of help is appreciated.
Type 1 to convert to Celsius and Type 2 to convert to Fahrenheit
1
Please enter temperature in Fahrenheit
68.1
Temperature is 20.0556 degree(s) celsius
made by Jan Cepeda
Type 1 to convert to Celsius and Type 2 to convert to Fahrenheit
2
Please enter temperature in Celcsius
19.1
Temperature is 66.38 degree(s) fahrenheit
made by Jan Cepeda