diff --git a/main.cpp b/main.cpp index db351ef..f0e33bd 100644 --- a/main.cpp +++ b/main.cpp @@ -1,3 +1,5 @@ +#include //cout,cin + using namespace std; int main() @@ -13,11 +15,15 @@ int main() cout<<"Enter another whole number: \n"; cin>>num2; - if( num1 = num2 ) + if( num1 == num2 ) { cout<<"Numbers should be different!\n"; repeat = true; } + else + { + repeat = false; + } }while(repeat); cout<<"Increasing order: "; @@ -32,4 +38,3 @@ int main() return 0; } -