summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/CST116 -Lab2-Hill.cpp
diff options
context:
space:
mode:
authortafaar <[email protected]>2022-11-09 17:36:14 -0800
committertafaar <[email protected]>2022-11-09 17:36:14 -0800
commit24426872ccc243c6d652ee43ada853b63690d1e1 (patch)
tree72ed8fc283cfb9a8a15e82f3b53262262bb67d50 /BlankConsoleLab/CST116 -Lab2-Hill.cpp
parentadded choice to continue (diff)
downloadcst116-lab2-hill-master.tar.xz
cst116-lab2-hill-master.zip
fixed while loop for main functionHEADmaster
Diffstat (limited to 'BlankConsoleLab/CST116 -Lab2-Hill.cpp')
-rw-r--r--BlankConsoleLab/CST116 -Lab2-Hill.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/BlankConsoleLab/CST116 -Lab2-Hill.cpp b/BlankConsoleLab/CST116 -Lab2-Hill.cpp
index 81d82ec..6e96b6d 100644
--- a/BlankConsoleLab/CST116 -Lab2-Hill.cpp
+++ b/BlankConsoleLab/CST116 -Lab2-Hill.cpp
@@ -69,9 +69,9 @@ float GetWindChill() {
int main()
{
- char choice = 'n';
+ char choice = 'Y';
- while (choice != 'Y') {
+ while (choice == 'Y') {
cout << "Please enter a temperature between -80 to 121 degrees fahrenheit, or -62 and 49.5 degrees celsius." << endl;
cout << "Example entries: -32.3 F, 27.8 C\n" << endl;