aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWiserJ <[email protected]>2021-10-19 15:13:38 -0700
committerWiserJ <[email protected]>2021-10-19 15:13:38 -0700
commitefb023062c39cc88d5813fb8e58e5f90901ad343 (patch)
treeaef9407795f29670f24d09d823fc5f9c1fdd7ac3
parenta (diff)
downloadcst116-lab3-jeffwoit-efb023062c39cc88d5813fb8e58e5f90901ad343.tar.xz
cst116-lab3-jeffwoit-efb023062c39cc88d5813fb8e58e5f90901ad343.zip
b
-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;