Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Why is it wrong to input Fahrenheit temperature and output Celsius temperature code in C language?
Why is it wrong to input Fahrenheit temperature and output Celsius temperature code in C language?
Hello, help you correct the following:

# include & ltstdio.h & gt

int main()

{

Floating f, c;

Printf ("Enter Fahrenheit: \ n");

scanf("%f ",& ampf);

c = 5 *(f-32)/9.0; //Where f is lowercase, "*" is a multiplication symbol and cannot be omitted.

Printf ("The corresponding temperature is: %5.2f\n", c);

Returns 0; //This cannot be without a return value.

}

If you don't know how to ask me, take it when you are satisfied. Thank you.

Have a good time