diff --git a/main.cpp b/main.cpp index cf29c37..48b7151 100644 --- a/main.cpp +++ b/main.cpp @@ -13,11 +13,12 @@ int main() cout<<"Enter another whole number: "; cin>>num2; - if( num1 = num2 ) + if( num1 == num2 ) { cout<<"Numbers should be different!"; repeat = true; } + else repeat = false; }while(repeat); cout<<"Increasing order: ";