From ede1c3b4f32158f6030c4242c2a15d7ced63cf3e Mon Sep 17 00:00:00 2001 From: DoolyBoi Date: Wed, 19 Oct 2022 20:47:57 -0700 Subject: greater than equal and less than equal --- BlankConsoleLab/CST116-Lab1-Havaldar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'BlankConsoleLab/CST116-Lab1-Havaldar.cpp') 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; } -- cgit v1.2.3