Examples pf C part 4 even or odd number
CHECK EVEN OR ODD
PROGRAM :
Output:
Enter a Number
5
The number 5 is Odd
PROGRAM :
#include<stdio.h> main() { int i; printf("Enter a Number\n"); scanf("%d",&i); if(i%2==0) { printf("The number %d is Even",i); } else { printf("The number %d is Odd",i); } printf("\n"); }
Enter a Number
5
The number 5 is Odd