C# C# Console Application

How to find Odd number in C#1 min read

In this tutorial I will show how to find Odd numbers in C#. I have given two example first example is very simple.

  • First example I have used simple for loop to find Odd numbers.
  • Second example I have created a Linq for finding Odd Numbers.

Both the examples check reminder of a number. If the reminder not 0 then the number must be odd number.




Method 1:

Method 2:

Output:

How to find Odd number in C#
How to find Odd number in C#

Leave a Comment