From 8124e61a1bb600a6b167b7187d2605db630c9dbe Mon Sep 17 00:00:00 2001 From: Sam Braybrooks Date: Wed, 13 Sep 2017 19:40:49 -0700 Subject: [PATCH 1/2] fixed #1 --- main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cpp b/main.cpp index db351ef..344b318 100644 --- a/main.cpp +++ b/main.cpp @@ -1,3 +1,4 @@ +#include using namespace std; int main() From 81a91510742d3afcde4a1448a16d60e63297987b Mon Sep 17 00:00:00 2001 From: Sam Braybrooks Date: Wed, 13 Sep 2017 19:51:23 -0700 Subject: [PATCH 2/2] fixed #2 --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 344b318..c6147b3 100644 --- a/main.cpp +++ b/main.cpp @@ -14,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;