hy i have a problem in a Result programe of C++. I want to find 1st,2nd and 3rd position from any number of students. I already have a code to find first three largest element of array but problem is that 2 or 3 students marks can be equal but in this situation my programe is not working please help me.

my logic is when we want to find 1st 2nd and 3rd position in student array it will equal to find first 3 largest number in array 1st large number is 1st position 2nd large number is 2nd number similarly 3rd large number is 3rd position now problem is that when 1st large and 2nd large or 3rd large number is equal then it is not showing correct result. i hope you understand.

thank you very very very much you are amazing and difference is only <= and >= now problem is if marks is if marks are 90,90,80,80,70,70 now what is result??????