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 c program add n numbers which will be entered by the user. Firstly user will enter a
- A palindrome number is a number such that if we reverse it, it will not change. For examp
- These program prints various different patterns of numbers and stars. These codes illustr
- This program reverse the number entered by the user and then prints the reversed number o
- These programs illustrate various programming elements, concepts such as using operators,
- C program to check leap year: c code to check leap year, year will be entered by the user
Subscribe to:
Post Comments (Atom)
EmoticonEmoticon