Computer Science, asked by yash191919, 5 months ago

write a program in java to sort an array in ascending order and display the second highest array element . array elements must be input by the user​

Answers

Answered by beckydanieldaniel
1

Explanation:

numbers and arrange them in an ascending order.

int i, j, a, n, number[30];

printf("Enter the value of N \n");

scanf("%d", &n);

printf("Enter the numbers \n");

for (i = 0; i < n; ++i)

scanf("%d", &number[i]);

for (i = 0; i < n; ++i)

More items...

Answered by Anonymous
8

Answer:

plz follow back me I am following u

Similar questions