Skip to content

Instantly share code, notes, and snippets.

@sprintr
Created January 26, 2013 12:42
Show Gist options
  • Save sprintr/4642099 to your computer and use it in GitHub Desktop.
Save sprintr/4642099 to your computer and use it in GitHub Desktop.
This is a simple command line Celsius to Fahrenheit converter
#include <iostream.h>
void main(void)
{
int c = 0, f = 0;
cout << "Enter the temprature in C: ";
cin >> c;
f = c * (9/5) + 32;
cout << "Temprature in F: " << f << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment