From bf98df390755f4c97aaa483ce5326def37e4e20d Mon Sep 17 00:00:00 2001 From: Kellee Cuellar Date: Wed, 13 Sep 2017 21:21:36 -0700 Subject: [PATCH] Added #include and changed line 16 to a proper comparison operator --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index cf29c37..7ae7a72 100644 --- a/main.cpp +++ b/main.cpp @@ -1,3 +1,5 @@ +#include + using namespace std; int main() @@ -13,7 +15,7 @@ int main() cout<<"Enter another whole number: "; cin>>num2; - if( num1 = num2 ) + if( num1 == num2 ) { cout<<"Numbers should be different!"; repeat = true;