Table of Contents
ToggleTemperature conversion formula
Temperature conversion formula from degree Celsius to Fahrenheit is given by –

Write Formula in C
f = (c * 9 / 5) + 32
Program to convert temperature from Celsius to Fahrenheit
#include
int main(){
//c program to convert Celsius to Fahrenheit
float celsius, fahrenheit;
//User input Celsius value
printf("Enter Temperature in Celsius:- ");
scanf("%f",&celsius);
//Calculate Fahrenheit
fahrenheit = (celsius * 9 / 5) + 32;
//print the result
printf("Celsius = %f Fahrenheit", fahrenheit);
return 0;
}
Output
