Find largest 3 number from an array

Given an array = {94,5,6,7,33,4,5,77,88,99,100, 96};

Find largest 3 numbers

Ouput:

The first max is 100
The second max is 99
The third max is 96

Code:

 

Leave a Reply

Your email address will not be published. Required fields are marked *