Created
January 26, 2013 12:42
-
-
Save sprintr/4642099 to your computer and use it in GitHub Desktop.
This is a simple command line Celsius to Fahrenheit converter
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 <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