# include "stdafx. H"
# include
# include
using namespace std;
Int main ()
{
Double F, c;
cout
C=5/9 * (F - 32);
cout<" Celsius is: "& lt;
}
Why no matter what the input, the result is 0.00
CodePudding user response:
Into a * c=5.0/9.0 (F - 32);CodePudding user response:
c=5/9 * (F - 32);
Change
c=5.0/9 * (F - 32);
CodePudding user response:
Reason is that 5/9 is calculated according to the division integer, so 5/9=0