diff --git a/main.cpp b/main.cpp index db351ef..325a577 100644 --- a/main.cpp +++ b/main.cpp @@ -1,4 +1,5 @@ using namespace std; +#include int main() { @@ -18,6 +19,10 @@ int main() cout<<"Numbers should be different!\n"; repeat = true; } + else + { + repeat = false; + } }while(repeat); cout<<"Increasing order: ";