โ Back to Arrays
Question 94
Second Largest Element
Second Largest Element
An array nums has been created with the values {10, 40, 20, 50, 30}. Find and print the SECOND largest value in this exact format:
Second largest: 40Expected Output:
Second largest: 40
Topics:
Arrays
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.