Arrays and matrice

Can variables be written as array elements as I would like to input values from user to variables and display the values as a matrice in my code. Also what would the appropriate method to do so be.

how to find second largest number in array.

Dear @Tula12,
Simply sort the array and then print the element at position n-2.
i.e print(a[n-2])