int main()
{
double tempc;
printf("Enter your temperature (Celsius):\n");
scanf("%f", &tempc);
printf("Your temperature in Fahrenheit is %.2f", (1.8 + tempc + 32));
}
No matter what input I give to tempc
it always prints 33.80
? I am very confused.