From c572bbf02edf9ea7739201c9ff94ed1b701c2042 Mon Sep 17 00:00:00 2001 From: logm Date: Wed, 13 Sep 2017 17:18:33 -0700 Subject: [PATCH] fix #1 and fix #2 --- main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index db351ef..8e011b4 100644 --- a/main.cpp +++ b/main.cpp @@ -1,3 +1,4 @@ +#include using namespace std; int main() @@ -12,8 +13,8 @@ int main() cin>>num1; cout<<"Enter another whole number: \n"; cin>>num2; - - if( num1 = num2 ) + repeat = false; + if( num1 == num2 ) { cout<<"Numbers should be different!\n"; repeat = true;