convert Fahrenheit to Celsius

#include<stdio.h>
int main() {
    float c,f;
    scanf("%f",&f);
    c= (f - 32) * 5 / 9;
     printf("Celsius is %f\n ",c);
    return 0;
}
Input:
98.6
Output:
Celsius is 37.000000

No comments:

Post a Comment