diff options
| author | Musa Ahmed <[email protected]> | 2022-10-19 17:32:08 -0700 |
|---|---|---|
| committer | Musa Ahmed <[email protected]> | 2022-10-19 17:32:08 -0700 |
| commit | 6caa43baade467fd1a082f9421b53da9256093bf (patch) | |
| tree | 86c7e53e1dac5dc763560ff56740a88ca807b792 | |
| parent | Removed "Using namespace Std" (diff) | |
| download | cst116-lab1-m005a-6caa43baade467fd1a082f9421b53da9256093bf.tar.xz cst116-lab1-m005a-6caa43baade467fd1a082f9421b53da9256093bf.zip | |
Added comments
| -rw-r--r-- | cst116-lab1-Ahmed/cst116-lab1-Ahmed.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cst116-lab1-Ahmed/cst116-lab1-Ahmed.cpp b/cst116-lab1-Ahmed/cst116-lab1-Ahmed.cpp index 3ebee56..a64ae0b 100644 --- a/cst116-lab1-Ahmed/cst116-lab1-Ahmed.cpp +++ b/cst116-lab1-Ahmed/cst116-lab1-Ahmed.cpp @@ -37,6 +37,7 @@ int main() cout << "Please keep the width and length between 1 and 400 centimeters" << endl; } + // Otherwise set range to true, and break from the loop else { range = true; break; @@ -68,7 +69,7 @@ int main() range = false; } - // otherwise break out successfully + // otherwise break out successfully, set isStable to true, and print the aspect ratio else { cout << "Aspect Ratio: " << aspect_ratio << endl; isStable = true; |