**Lab Manual for Mechanical Dept.(3rd year)**

**Attention:**

Dear Students, ME-A,ME-B1,ME-B2 (3rd Year) submit Your **C Programming lab copy** within 26/09/2016.

**Attention:**

Dear Students, ME-A,ME-B1,ME-B2 (3rd Year) submit Your **C Programming lab copy** within 26/09/2016.

C program to check odd or even: In childhood As you have studied in mathematics that in decimal number system even numbers are divisible by 2 while odd are not divisible by 2, we may use modulus operator(%) which returns remainder, For example, 7%2 gives 1 ( remainder when seven is divided by two). Even numbers are of the form 2*X and odd are of the form (2*X+1) where X is is an integer.We will determine whether a number is odd or even by using different methods all are provided with a code in c language.