WAP to input any number from the keyboard and find out whether it is odd or even.

#include<stdio.h>
#include<conio.h>
void main(){
int n;
printf("Enter any number=");
scanf("%d",&n);
if(n%2==0)
printf("The Entered Number is even");
else
printf("The Entered Number is odd");
getch();
}

Results

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *