From f05fa5fbd99e91a4272e1b2d5b74de67b60c268b Mon Sep 17 00:00:00 2001 From: Ryan Bonomo Date: Wed, 13 Sep 2017 17:08:13 -0700 Subject: [PATCH] fix errors in main.cpp --- main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index db351ef..109dce1 100644 --- a/main.cpp +++ b/main.cpp @@ -1,3 +1,5 @@ +#include + using namespace std; int main() @@ -8,12 +10,13 @@ int main() do { + repeat = false; cout<<"Enter a whole number: \n"; cin>>num1; cout<<"Enter another whole number: \n"; cin>>num2; - if( num1 = num2 ) + if( num1 == num2 ) { cout<<"Numbers should be different!\n"; repeat = true; @@ -32,4 +35,3 @@ int main() return 0; } -