From ed4d8399f7e6527fdda5fd79e81b7023484548ae Mon Sep 17 00:00:00 2001 From: samburba Date: Wed, 13 Sep 2017 13:14:02 -0700 Subject: [PATCH 1/2] fixed main.cpp - added header file and fixed logic --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index db351ef..c6147b3 100644 --- a/main.cpp +++ b/main.cpp @@ -1,3 +1,4 @@ +#include using namespace std; int main() @@ -13,7 +14,7 @@ int main() cout<<"Enter another whole number: \n"; cin>>num2; - if( num1 = num2 ) + if( num1 == num2 ) { cout<<"Numbers should be different!\n"; repeat = true; From 43e7371c1e1e3b8ffe9c1471f3ca1eee936c8deb Mon Sep 17 00:00:00 2001 From: samburba Date: Wed, 13 Sep 2017 13:30:56 -0700 Subject: [PATCH 2/2] done --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index c6147b3..13b0e89 100644 --- a/main.cpp +++ b/main.cpp @@ -9,6 +9,7 @@ int main() do { + repeat = false; cout<<"Enter a whole number: \n"; cin>>num1; cout<<"Enter another whole number: \n"; @@ -31,6 +32,5 @@ int main() cout<