From 29a2ed060521c3353c764248f04f4b12d43b1fec Mon Sep 17 00:00:00 2001 From: Oliver Ray Reed Date: Wed, 13 Sep 2017 19:35:07 -0700 Subject: [PATCH] Fixes #1: adding and #2: change = to == Fixed issue #1 by adding 'include ' Fixed issue #2 by changing the assignment to an equality comparison --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index db351ef..a9f8e98 100644 --- a/main.cpp +++ b/main.cpp @@ -1,4 +1,5 @@ using namespace std; +include ; 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;