WAP to accept the second largest number in a user input integer array.
Answers
Answered by
2
Answer:
try this in your index.html
Any doubt in web development I will help you
Attachments:
Answered by
0
Java program to find the 2nd largest number in an array
- Compare the first two elements of the array.
- If the first element is greater than the second swap them.
- Then, compare 2nd and 3rd elements if the second element is greater than the 3rd swap them.
- Repeat this till the end of the array.
Similar questions
Economy,
1 day ago
Math,
1 day ago
Biology,
1 day ago
Science,
2 days ago
Social Sciences,
2 days ago
English,
8 months ago
Social Sciences,
8 months ago