Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# even or odd

int x = 2;
if(x % 2 == 0){
    Console.WriteLine("Is even");
}
else
{
    Console.WriteLine("Is odd");
}
Source by csharp-station.com #
 
PREVIOUS NEXT
Tagged: #odd
ADD COMMENT
Topic
Name
4+1 =