From 24426872ccc243c6d652ee43ada853b63690d1e1 Mon Sep 17 00:00:00 2001 From: tafaar Date: Wed, 9 Nov 2022 17:36:14 -0800 Subject: fixed while loop for main function --- BlankConsoleLab/CST116 -Lab2-Hill.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'BlankConsoleLab/CST116 -Lab2-Hill.cpp') 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; -- cgit v1.2.3