Write a program in C# Sharp to find the second largest element in an array.
belongs to collection: C# language array programs with an examples
All Answers
total answers (1)
belongs to collection: C# language array programs with an examples
total answers (1)
I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as per your availability..
Result:
Input the size of array : 5
Input 5 elements in the array :
1
2
3
4
5
The Second largest element in the array is : 4
need an explanation for this answer? contact us directly to get an explanation for this answer