#include <iostream>
using namespace std;
int main() {
// Problem #2 Ascending Order
int num1, num2, num3, small, medium, large;
cin >> num1 >> num2 >> num3;
if(num1 <= num2 && num1 <= num3) {
small = num1;
if(num2 <= num3) {
medium = num2;
large = num3;
} else {
large = num2;
medium = num3;
}
} else if(num2 <= num1 && num2 <= num3) {
small = num2;
if(num3 <= num1) {
medium = num3;
large = num1;
} else {
large = num3;
medium = num1;
}
} else {
small = num3;
if(num2 <= num1) {
medium = num2;
large = num1;
} else {
large = num2;
medium = num1;
}
}
cout << small << " " << medium << " " << large;
return 0;
/* This code is to sort 3 numbers in ascending order, this is the solution I came up with. Im not sure if its a good answer, is their any better way to do this? Should I be happy with this solution? Any thoughts? Im new to programming and want to know if the solutions Im coming up with are realisitic? Like are they good enough for me to get a job if I problem solve like this? Does this show that Im a bad programmer? */