diff --git a/main.cpp b/main.cpp index cf29c37..64620f7 100644 --- a/main.cpp +++ b/main.cpp @@ -1,4 +1,5 @@ using namespace std; +#include int main() { @@ -12,12 +13,14 @@ int main() cin>>num1; 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: "; @@ -32,4 +35,3 @@ int main() return 0; } -