### Problem statement

Write a program to take number as input from user and determine it is even or odd.

### How can find number is even or odd

A number which is divisible by 2 completely is called even numbers.

A number which is not divisible by 2 is called as odd numbers.

Generally even numbers are end with 0, 2, 4, 6, 8 digit.

### Program to determine given number is even or odd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#include<stdio.h> int main() { int i=0; int num=0; printf("Enter the number\t"); scanf("%d", &num); if(num % 2 == 0) { printf("%d number is even\n",i); } else if(num % 2 == 1) { printf("%d number is odd\n",i); } } |

**Output**

1 2 3 |
Enter the number 789 789 number is odd |