Created
October 11, 2010 05:42
-
-
Save Asher-/620041 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void input() { | |
float input_temperature_f; | |
printf( "Input temperature in Fahrenheit.\n" ); | |
scanf( "%f", &input_temperature_f ); | |
} | |
void process() { | |
float conversion_temperature; | |
conversion_temperature = (conversion_temperature - 32) * 5/9; | |
} | |
void output() { | |
float output_temperature_c; | |
printf( "Temperature in Celcius: %f\n", output_temperature_c ); | |
} | |
int main() { | |
input(); | |
process(); | |
output(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment