Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# is odd number

// using modulo operator %
if(num%2 == 0){
  Console.WriteLine("Number is even")
}else{
  Console.WriteLine("Number is odd")
}
Source by csharp-station.com #
 
PREVIOUS NEXT
Tagged: #odd #number
ADD COMMENT
Topic
Name
8+6 =