From 408a33fd9af7f1b19342c2ae981c710aa7b59cc9 Mon Sep 17 00:00:00 2001 From: WiserJ Date: Tue, 19 Oct 2021 15:12:56 -0700 Subject: a --- CST116F2021-Lab3/CST116F2021-Lab3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3