diff --git a/main.cpp b/main.cpp index db351ef..13b0e89 100644 --- a/main.cpp +++ b/main.cpp @@ -1,3 +1,4 @@ +#include using namespace std; int main() @@ -8,12 +9,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; @@ -30,6 +32,5 @@ int main() cout<