C program that finds whether a given number is Even or Odd. Get link Facebook X Pinterest Email Other Apps September 01, 2020 Program :#include<stdio.h>#include<conio.h>void main(){ int n,r; clrscr(); printf("Enter a number :\n"); scanf("%d",&n); r=n%2; if(r==0) { printf("The number is EVEN"); } else { printf("The number is ODD"); } getch();}Output : Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment