diff options
| author | DoolyBoi <[email protected]> | 2022-10-19 20:47:57 -0700 |
|---|---|---|
| committer | DoolyBoi <[email protected]> | 2022-10-19 20:47:57 -0700 |
| commit | ede1c3b4f32158f6030c4242c2a15d7ced63cf3e (patch) | |
| tree | 3526e3be1d9f0d30153a4647fccfc030993f16ae /BlankConsoleLab/CST116-Lab1-Havaldar.cpp | |
| parent | comments (diff) | |
| download | cst116-lab1-abd00l4h-ede1c3b4f32158f6030c4242c2a15d7ced63cf3e.tar.xz cst116-lab1-abd00l4h-ede1c3b4f32158f6030c4242c2a15d7ced63cf3e.zip | |
greater than equal and less than equal
Diffstat (limited to 'BlankConsoleLab/CST116-Lab1-Havaldar.cpp')
| -rw-r--r-- | BlankConsoleLab/CST116-Lab1-Havaldar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BlankConsoleLab/CST116-Lab1-Havaldar.cpp b/BlankConsoleLab/CST116-Lab1-Havaldar.cpp index e2756ac..f1a5fbb 100644 --- a/BlankConsoleLab/CST116-Lab1-Havaldar.cpp +++ b/BlankConsoleLab/CST116-Lab1-Havaldar.cpp @@ -30,7 +30,7 @@ int main() cout << "Please enter the length of your kite." << endl; cin >> length; - if (length > 400 || length < 1) + if (length >= 400 || length <= 1) { cout << "Please enter a length between 1 and 400. " << endl; } @@ -47,7 +47,7 @@ int main() cout << "Please enter the width of your kite." << endl; cin >> width; - if (width > 400 || width < 1) + if (width >= 400 || width <= 1) { cout << "Please enter a width between 1 and 400. " << endl; } |