Monday, 25 April 2016

EVEN OR ADD --Sample Programs -- C#.NET

EVEN OR ADD


Write a Program to check a given is even or odd in C# language ?

ANS :



1. read a number from keyboard 
2. in if , divide that number with 2 if  remainder is zero it is even otherwise odd


------------------------------------------------------------------------------------------------------------------