Tuesday, February 10, 2015

Fahrenheit to Celsius Conversion

#include <stdio.h> int main (void) { int fahrenheit; double celsius; printf("Enter the temperature in degrees fahrenheit:"); scanf("%d", &fahrenheit); celsius = (5.0/9.0) * (fahrenheit-32); printf ("The converted temperature is %lf\n", celsius); return 0; }

Share

& Comment

0 comments:

Post a Comment

 

Copyright © 2015 Code Fervor™ is a registered trademark.

Designed by Templateism By Naman Kumar