input random int and arrange from low to high

Hi,
I just want to know the simplest way to arrange integers.
Integers are inputed randomly into one variable at using a loop...
after inputing 10 integers the loop stops and I want the output to
show all integers from lowest to highest...
thank you
Use std::sort().
Topic archived. No new replies allowed.