Saturday, April 13, 2019

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

No comments:

Post a Comment

PUBG MOBILE FIRST ANNIVERSARY EVENT FEATURES A NEW SONG FROM ALAN WALKER

PUBG MOBILE to Feature Alan Walker’s New Single “On My Way “and Host One of the World’s Biggest Mobile Gaming Tournament In celebratio...