0
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.

user17732522
  • 53,019
  • 2
  • 56
  • 105
Edward Roy
  • 43
  • 5

0 Answers0