Part 4 Subtract the largest even number and smallest odd number in the given array elements04:33

  • 0
Published on November 10, 2017

Link for all dot net and sql server video tutorial playlists

Link for slides, code samples and text version of the video

One of our youtube channel subscribers faced this question in a C# written test.
Write a program in c# to subtract the largest even number and smallest odd number in the given array elements. This has to be achieved without using LINQ.

The logic for finding the largest even number and smallest odd number becomes much easier when we use the following LINQ functions.
1. Where()
2. Max()
3. Min()

Enjoyed this video?
"No Thanks. Please Close This Box!"