From 7e632a1815024fec8bbde3719fcc075d84cfd4e9 Mon Sep 17 00:00:00 2001 From: Justin K Guillermo Date: Wed, 13 Sep 2017 17:04:27 -0700 Subject: [PATCH] Made change to number comparison and added else statement to help with logic --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index cf29c37..48b7151 100644 --- a/main.cpp +++ b/main.cpp @@ -13,11 +13,12 @@ int main() cout<<"Enter another whole number: "; cin>>num2; - if( num1 = num2 ) + if( num1 == num2 ) { cout<<"Numbers should be different!"; repeat = true; } + else repeat = false; }while(repeat); cout<<"Increasing order: ";