summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/CST116-Lab1-Havaldar.cpp
diff options
context:
space:
mode:
authorDoolyBoi <[email protected]>2022-10-19 20:47:57 -0700
committerDoolyBoi <[email protected]>2022-10-19 20:47:57 -0700
commitede1c3b4f32158f6030c4242c2a15d7ced63cf3e (patch)
tree3526e3be1d9f0d30153a4647fccfc030993f16ae /BlankConsoleLab/CST116-Lab1-Havaldar.cpp
parentcomments (diff)
downloadcst116-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.cpp4
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;
}