diff options
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index bac87bf..f3e4834 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -24,14 +24,20 @@ const float CMIN = -62; //Set values for minimum and maximum temperatures. -int C_to_F(int Celsius) { - +int CtoF(int Celsius) { + return Celsius; } int main() { int Celsius = 0; + + + cout << "Please enter a temperature between -62 and 49.5 degrees Celsius: \n"; + cin >> Celsius; + cout << CtoF(12) << endl; + cout << "Hello World!\n"; } |