From 376b3cece1e0851a650b26fc8ad8c8f13ebbc4bf Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Wed, 13 Sep 2017 14:04:13 -0700 Subject: [PATCH] Fixed Bug #1, Fixed Bug #2 --- main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index db351ef..8af9722 100644 --- a/main.cpp +++ b/main.cpp @@ -1,3 +1,4 @@ +#include using namespace std; int main() @@ -13,11 +14,13 @@ 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: ";