#include<stdio.h>
void main(){
int num;
printf("Enter a number:");
scanf("%d",&num);
if(num%2==0){
printf("%d is Even",num);
}
else{
printf("%d is Odd",num);
}
}
- print "Number is Even"
- print "Number is Odd"
#include<stdio.h>
void main(){
int num;
printf("Enter a number:");
scanf("%d",&num);
if(num%2==0){
printf("%d is Even",num);
}
else{
printf("%d is Odd",num);
}
}