Fahrenheit to celsius or celsius to Fahrenheit Temperature | C-Program

Temperature: 

Formula:


F= Fahrenheit,  C=Celsius.

Code:

#include<stdio.h>

void main()

{

    float f,c;

    printf("Enter the temperature in celcius: ");

    scanf("%f",&c);

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

    printf("The temperature in faranhite: %f\n",f);

    printf("Enter the temperature in farnhite: ");

    scanf("%f",&f);

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

    printf("The temperature in celcius: %f",c);

    getch();

}

Output:

Popular posts from this blog

TOP 10 PROGRAMMING LANGAUAGES COMMING 2021 | ARTICLE

Write a C-program to swap two number:

Print Fibonacci Series using Recursion | C program :