want to find the second smallest number without array

The question is read 10 integers and find the second smallest number without array.I think with array i can delete the smallest and after that find the smallest with the new array.but without array,i cannot store so the solution is difficult.
Can anyone help me?Thanks
int smallest, almost_smallest;
If you replace smallest, then you should do almost_smallest=smallest before
Topic archived. No new replies allowed.