I am a total beginner with this, started a couple days ago. I have no idea on how to get numbers in order, I have to have a user enter 3 numbers and put them in order, help is appreciated
#include <iostream>
using std::endl;
using std::cin;
using std::cout;
int main()
{
//declare variables
bool Number_1 = 0;
bool Number_2 = 0;
bool Number_3 = 0;
//enter input items
cout << "Please enter the first number: ";
cin >> Number_1;
cout << "Please enter the second number: ";
cin >> Number_2;
cout << "Please enter the third number: ";
cin >> Number_3;
if (Number_1 <= Number_2 <= Number_3)
cout << "The first number is: " << Number_1 << endl;
cout << "The second number is: " << Number_2 << endl;
cout << "The third number is: " << Number_3 endl;
else if Number_1 <= Number_3 <= Number_2)
cout << "The first number is: " << Number_1 << endl;
cout << "The second number is: " << Number_3 << endl;
cout << "The third number is: " << Number_2 endl;
else if ( Number_2 <= Number_1 <= Number_3)
cout << "The first number is: " << Number_2 << endl;
cout << "The second number is: " << Number_1 << endl;
cout << "The third number is: " << Number_3 << endl;
else if ( Number_2 <= Number_3 <= Number_1)
cout << "The first number is: " << Number_2 << endl;
cout << "The second number is: " << Number_3 << endl;
cout << "The third number is: " << Number_1 << endl;
else if ( Number_3 <= Number_2 <= Number_1)
cout << "The first number is: " << Number_3 << endl;
cout << "The second number is: " << Number_2 << endl;
cout << "The third number is: " << Number_1 << endl;
else if ( Number_3 <= Number_1 <= Number_2)
cout << "The first number is: " << Number_3 << endl;
cout << "The second number is: " << Number_1 << endl;
cout << "The third number is: " << Number_2 << endl;
//end ifs
return 0;
} //end of main function