Answers for "find odd elements function in c#"

C#
1

odd or even in c#

if(num %2 == 0){
  Console.WriteLine("Number is even")
}else{
  Console.WriteLine("Number is odd")
}
Posted by: Guest on October-29-2020
0

c# is odd number

// using modulo operator %
if(num%2 == 0){
  Console.WriteLine("Number is even")
}else{
  Console.WriteLine("Number is odd")
}
Posted by: Guest on June-27-2021

C# Answers by Framework

Browse Popular Code Answers by Language