DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CSHARP
odd or even in c#
if
(
num
%
2
==
0
)
{
Console
.
WriteLine
(
"Number is even"
)
}
else
{
Console
.
WriteLine
(
"Number is odd"
)
}
Source by csharp-station.com #
PREVIOUS
NEXT
Tagged:
#odd
ADD COMMENT
Topic
COMMENT
Name
5+4 =
Submit