HI! could anyone help me out in editing the following code so that the list of number is displayed in ascending order. thanks.
#include <iostream.h>
void main()
{
int count;
cout << "Enter a number: ";
cin >> count;
while (count > 0)
{
cout << count << endl;
--count;
}
}