Skip to content

Instantly share code, notes, and snippets.

@Asher-
Created October 11, 2010 05:42
Show Gist options
  • Save Asher-/620041 to your computer and use it in GitHub Desktop.
Save Asher-/620041 to your computer and use it in GitHub Desktop.
#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