From 3efaf33f9d0fa159dccac9ae8c928246ca9d4d2b Mon Sep 17 00:00:00 2001 From: Nick Elliot <31418739+NickElliot@users.noreply.github.com> Date: Wed, 13 Sep 2017 23:46:24 -0700 Subject: [PATCH] Update main.cpp include iostream, fixing boolean syntax --- 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;