#include <iostream>
usingnamespace std;
int main()
{
int ordNums[3];
int big, med, low = 0;
cout << "Enter 3 numbers, do not enter any negatives." << endl;
cin >> ordNums[0] >> ordNums[1] >> ordNums[2];
for (int i = 0; i < 2; i++) {
if (ordNums[i] > big){
big = ordNums[i];}
}
for (int x = 0; x < 2; x++) {
if (ordNums[x] < big){
med = ordNums[x];}
}
for (int z = 0; z < 2; z++) {
if (ordNums[z] < med){
low = ordNums[z];}
}
cout << "The order of your numbers from least to greatest is " << low << ", " << med << ", " << big << "." << endl;
return 0;
}