How to convert temperature from degree centigrade to Fahrenheit using C

C Program to convert temperature from degree centigrade to Fahrenheit


#include <stdio.h>
 
int main() {
 float celsius, fahrenheit;
 
 printf("\nEnter temp in Celsius : ");
 scanf("%f", &celsius);
 
 fahrenheit = (1.8 * celsius) + 32;
 printf("\nTemperature in Fahrenheit : %f ", fahrenheit);
 
 return (0);
}

Output


Enter temp in Celsius : 32
Temperature in Fahrenheit : 89.59998
How to convert temperature from degree centigrade to Fahrenheit using C

Published on 12-Dec-2021 9:21:47

You may also like this!