aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab3/CST116F2021-Lab3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CST116F2021-Lab3/CST116F2021-Lab3.cpp')
-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 d412fc7..31d592e 100644
--- a/CST116F2021-Lab3/CST116F2021-Lab3.cpp
+++ b/CST116F2021-Lab3/CST116F2021-Lab3.cpp
@@ -55,7 +55,7 @@ int main()
remainder = input % 2;
- while (remainder !=0)
+ if(remainder !=0)
{
input = input--;
remainder = input % 2;