In mathematics, in decimal number system even numbers are divisible by 2 while odd are not so we can use modulus operator(%) which returns remainder, For example 4%3 gives 1 ( remainder when four is divided by three). Even numbers are of the form 2*p and odd are of the form (2*p+1) where p is is an integer.
Monday, 4 August 2014
C program to check Odd or Even

Artikel Terkait
- This program reverse the number entered by the user and then prints the reversed number o
- C code to find and print factorial of a number, three methods are given, first one uses f
- This c program add n numbers which will be entered by the user. Firstly user will enter a
- Prime number program in c: c program for prime number, this code prints prime numbers usi
- C program to check leap year: c code to check leap year, year will be entered by the user
- These program prints various different patterns of numbers and stars. These codes illustr
Subscribe to:
Post Comments (Atom)
EmoticonEmoticon