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
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
8
Answer:
plz follow back me I am following u
Similar questions
Hindi,
2 months ago
Political Science,
2 months ago
Science,
2 months ago
Math,
5 months ago
Math,
10 months ago
India Languages,
10 months ago
Science,
10 months ago