C Program To Convert Celsius Into Fahrenheit

C Program To Convert Celsius Into Fahrenheit

Example

#include<stdio.h>

void main() {
    float Celcius, Fahrenheit;
    printf("n Enter Tempreture In Celcius: ");
    scanf("%f", &Celcius);
    
    Fahrenheit = Celcius * 9 / 5 + 32;
    printf("n Tempreture In Fahrenheit is: %0.2f", Fahrenheit);
}

Output:

Enter Tempreture In Celcius: 0
Tempreture In Fahrenheit is: 32.00

Leave a comment