summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacobdw22 <[email protected]>2022-11-02 01:18:15 -0700
committerjacobdw22 <[email protected]>2022-11-02 01:18:15 -0700
commitdf0bdf41b30a99d363ea23514a3dffe65d77d680 (patch)
treee04c35cef46d0d5d0f3f658f0d7de1f6edcaba59
parentsimple changes (diff)
downloadcst116-lab2-jacobdw22-df0bdf41b30a99d363ea23514a3dffe65d77d680.tar.xz
cst116-lab2-jacobdw22-df0bdf41b30a99d363ea23514a3dffe65d77d680.zip
simple changes
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp10
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";
}