i need to find the two largest vaules of 10 numbers using a while loop.

so far i can only find the largest number but can't fingure out how to get the 2nd largest number.

here is how i find the largest number

how do i find the second largest number???Code:`int counter = 1, number, largest = 0, second_largest = 0;`

while ( counter <= 10 ) {

printf("enter number: ");

scanf("%d", &number );

if ( number > largest )

number = largest;

counter++;

}