diff options
| author | WiserJ <[email protected]> | 2021-10-19 15:13:38 -0700 |
|---|---|---|
| committer | WiserJ <[email protected]> | 2021-10-19 15:13:38 -0700 |
| commit | efb023062c39cc88d5813fb8e58e5f90901ad343 (patch) | |
| tree | aef9407795f29670f24d09d823fc5f9c1fdd7ac3 | |
| parent | a (diff) | |
| download | cst116-lab3-jeffwoit-efb023062c39cc88d5813fb8e58e5f90901ad343.tar.xz cst116-lab3-jeffwoit-efb023062c39cc88d5813fb8e58e5f90901ad343.zip | |
b
| -rw-r--r-- | CST116F2021-Lab3/CST116F2021-Lab3.cpp | 2 |
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; |