1

here is the code. why is the answer zero?

//Write a program that reads the temperature in Fahrenheit and displays it in Celsius.

#include<stdio.h>
int main(){
float fah,cel;
printf("Enter the temperature in Fahrenheit\n");
scanf("%f",&fah);
cel=5/9*(fah-32);
printf("The temperature in Celsius is %3f",cel);
return 0;
}

enter image description here

0 Answers0