-4
#include <stdio.h>

int main()

{

float c = 5.0;

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

return 0;

}
Suraj Rao
  • 29,388
  • 11
  • 94
  • 103

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
  • 5,716
  • 8
  • 28
  • 43
Giriteja Bille
  • 168
  • 1
  • 13