Computer Science, asked by AnjaliShaw1026, 2 days ago

WAP to accept the second largest number in a user input integer array.​

Answers

Answered by kishanramesh05
2

Answer:

try this in your index.html

Any doubt in web development I will help you

Attachments:
Answered by XxItsCutePrincexX
0

 \huge \mathfrak \red{ Solution ✮ }

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