From efb023062c39cc88d5813fb8e58e5f90901ad343 Mon Sep 17 00:00:00 2001 From: WiserJ Date: Tue, 19 Oct 2021 15:13:38 -0700 Subject: b --- 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 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; -- cgit v1.2.3