diff options
| author | tafaar <[email protected]> | 2022-11-09 17:36:14 -0800 |
|---|---|---|
| committer | tafaar <[email protected]> | 2022-11-09 17:36:14 -0800 |
| commit | 24426872ccc243c6d652ee43ada853b63690d1e1 (patch) | |
| tree | 72ed8fc283cfb9a8a15e82f3b53262262bb67d50 /BlankConsoleLab/CST116 -Lab2-Hill.cpp | |
| parent | added choice to continue (diff) | |
| download | cst116-lab2-hill-master.tar.xz cst116-lab2-hill-master.zip | |
Diffstat (limited to 'BlankConsoleLab/CST116 -Lab2-Hill.cpp')
| -rw-r--r-- | BlankConsoleLab/CST116 -Lab2-Hill.cpp | 4 |
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; |