Celsius to Fahrenheit – C Program

Celsius to Fahrenheit C Program

Write a C Program to convert Temperature from Celsius to Fahrenheit

#include <stdio.h>
#include <conio.h>

void main()
{
    float cel, fan;
    
    printf("Enter temperature in Celsius : \n");
    scanf("%f",&cel);
    
    fan = (cel * 1.8) + 32;
    printf("\nFahrenheit = %f",fan);
    
}

The output of Celsius to Fahrenheit c program :

Enter temperature in Celsius : 
10

Fahrenheit = 50

 

Leave a Reply

Your email address will not be published. Required fields are marked *