[Solved] Not getting the correct answer

[ad_1]

#include <stdio.h>

int temp(int fahr) 
{
  return 5*(fahr-32)/9;
}

int main() {
  int fahr, celsius;
  printf ("Enter fahrenheit value here: ");
  scanf("%d", &fahr);
  celsius = temp(fahr);
  printf ("The Celsius value is: %d ", celsius);
  return 0;
}

2

[ad_2]

solved Not getting the correct answer