aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CST116F2021-Lab3/CST116F2021-Lab3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/CST116F2021-Lab3/CST116F2021-Lab3.cpp b/CST116F2021-Lab3/CST116F2021-Lab3.cpp
index 95c277c..d412fc7 100644
--- a/CST116F2021-Lab3/CST116F2021-Lab3.cpp
+++ b/CST116F2021-Lab3/CST116F2021-Lab3.cpp
@@ -21,7 +21,7 @@ int main()
remainder = input % 2;
- while (remainder != 0)
+ if(remainder != 0)
{
input = input--;
remainder = input % 2;