From c1a051db024c60cbc6e868e5ca822069435c08b7 Mon Sep 17 00:00:00 2001 From: Austin Smitherman Date: Fri, 15 Sep 2017 19:58:50 -0700 Subject: [PATCH 1/2] Included iostream, fixed if statement comparison, fixed issue 1 --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index db351ef..d4677b1 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; From 43cc6fc5093591af38e1aa0d5943e56a0a8731fb Mon Sep 17 00:00:00 2001 From: Austin Smitherman Date: Fri, 15 Sep 2017 20:01:09 -0700 Subject: [PATCH 2/2] fixed if logic, issue 2 --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index d4677b1..33cd94a 100644 --- a/main.cpp +++ b/main.cpp @@ -22,7 +22,7 @@ int main() }while(repeat); cout<<"Increasing order: "; - if( num1 < num2 ) + if( num1 <= num2 ) { cout<