Computer Science, asked by sugtannu0454y, 7 months ago

write a program in a java to store 10 numbers in a single dimensional array. print the array elements .sort the array using a standard shorting technic . now print the shorted array and print the second highest element

Answers

Answered by RuwaisnZaid
0

Explanation:

l = []

l2 = []

for i in range(10):

x = int(input("enter no"))

l.append(x)

for i in l:

if I not in l2:

u = l2.append(I)

print("sort",u)

print("second Highest" ,u[len(u)-1]

mark me as brainly*

Similar questions