aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWiserJ <[email protected]>2021-10-19 15:12:56 -0700
committerWiserJ <[email protected]>2021-10-19 15:12:56 -0700
commit408a33fd9af7f1b19342c2ae981c710aa7b59cc9 (patch)
treeb75bbbd9e42243ae2f5002c48b81c587cf2226d5
parentp.179 (diff)
downloadcst116-lab3-jeffwoit-408a33fd9af7f1b19342c2ae981c710aa7b59cc9.tar.xz
cst116-lab3-jeffwoit-408a33fd9af7f1b19342c2ae981c710aa7b59cc9.zip
a
-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;