Q4 Temperature of a City in Fahrenheit degree is input through the keyboard. Write a program to convert this temperature into centigrade degree.

Convert Fahrenheit to Centigrade Degree

Program: 54

Write a c program to convert Fahrenheit degree into Centigrade degree | Let Us C Solutions

 

 

#include<stdio.h>
#include<conio.h>
int main()
{
    float f, c;
    printf("Enter Temperature in Fahrenheit: ");
    scanf("%f", &f);

    c = (f-32)*5/9;

    printf("The Temperature in Centigrade Degree: %.2f", c);
    return (0);
}

Output:

Enter Temperature in Fahrenheit: 98
The Temperature in Centigrade Degree: 36.67
Lokesh Kumar: Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.

View Comments (1)

Related Post
Leave a Comment

This website uses cookies.