-4
#include <stdio.h>

int main()

{

float c = 5.0;

printf ("Temperature in Fahrenheit is %.2f", (9/5)*c + 32);

return 0;

}
Suraj Rao
  • 28,850
  • 10
  • 94
  • 99

1 Answers1

2

Change your statement to (9.0/5.0)*c + 32 as 9 and 5 are integers, their division returns integer that is 1. So write them in float variable format.

user438383
  • 4,338
  • 6
  • 23
  • 35
Giriteja Bille
  • 160
  • 1
  • 12