It will be something like this. This program takes 3 numbers and displays them in increasing order. Use this format for your program. Let me know if you have questions.
#include <iostream>
usingnamespace std;
int main(){
// inputs the numbers
cout << "Enter three numbers: ";
int one, two, three;
cin >> one >> two >> three;
int tmp;
// orders one and two
if (one > two){
tmp = one;
one = two;
two = tmp;
}
// orders two and three
if (two > three){
tmp = two;
two = three;
three = tmp;
}
// orders one and two
if (one > two){
tmp = one;
one = two;
two = tmp;
}
// outputs the sorted numbers
cout << "The sorted numbers are: ";
cout << one << " " << two << " " << three << endl;
}