Hey everyone,
We have several programs to find the 1st biggest element and 2nd biggest element in the array, but this program gives the biggest element based on the input you give. That is if you give input as 1 it populates 1st biggest and if u give input as 2 it populates 2nd biggest element from and the array.