diff --git a/main.cpp b/main.cpp index db351ef..33cd94a 100644 --- a/main.cpp +++ b/main.cpp @@ -1,3 +1,4 @@ +#include using namespace std; int main() @@ -13,7 +14,7 @@ int main() cout<<"Enter another whole number: \n"; cin>>num2; - if( num1 = num2 ) + if( num1 == num2 ) { cout<<"Numbers should be different!\n"; repeat = true; @@ -21,7 +22,7 @@ int main() }while(repeat); cout<<"Increasing order: "; - if( num1 < num2 ) + if( num1 <= num2 ) { cout<