Program to convert Celsius to Fahrenheit in Language C

WELCOME BACK TO codejunction.in , hope you are having a good day.



IN THIS PROGRAM WE WILL CALCULATE THE FAHRENHEIT BY ENTERING CELSIUS.



CODE


#include <stdio.h> int main() { float celsius, fahrenheit; printf("Enter temperature in Celsius: "); scanf("%f", &celsius); fahrenheit = (celsius * 9 / 5) + 32;
printf("%f Celsius=%f Fahrenheit",celsius,fahrenheit);
return 0; }


OUTPUT

Post a Comment

0 Comments