Even Or Odd Number In C


#include<stdio.h> int main(){ int l; printf("\n Enter a number :"); scanf("%d" ,&l); if (l%2==0) { printf("\n The number is Even : %d",l); } else { printf("\n The number is Odd : %d",l); } return 0; }

Output:-

Enter a number : 13 The number is odd : 13