diff options
Diffstat (limited to 'BlankConsoleLab')
| -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; } |