I want this code to prompt Fahrenheit degree and then convert to Celsius. https://code.sololearn.com/c681ejEtxY9F/#cpp can you help, please?
"// Configure the display to show monthly income." You didn't even change the comments from a previous code. Laziness level over 9000
You use ints to do floating point operation, you code will work by changing to floats: float f = 72 ; cout << "Please enter Fahrenheit degrees:"; cin >> f; float c = 5.0 / 9.0 * (f - 32.0);
I accept my mistake and thank you for the notice
But one more thing, the output is in whole number, but I want it in decimals
How do I do that???
If you want to have to have more digits after the comma, change the precision value too something else than 0