diff options
| author | WiserJ <[email protected]> | 2021-10-19 15:12:56 -0700 |
|---|---|---|
| committer | WiserJ <[email protected]> | 2021-10-19 15:12:56 -0700 |
| commit | 408a33fd9af7f1b19342c2ae981c710aa7b59cc9 (patch) | |
| tree | b75bbbd9e42243ae2f5002c48b81c587cf2226d5 | |
| parent | p.179 (diff) | |
| download | cst116-lab3-jeffwoit-408a33fd9af7f1b19342c2ae981c710aa7b59cc9.tar.xz cst116-lab3-jeffwoit-408a33fd9af7f1b19342c2ae981c710aa7b59cc9.zip | |
a
| -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 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; |