#include <stdio.h>
int main() {
int a;
printf("Enter an number to check even or odd:-\n ");
scanf("%d", &a);
if(a % 2 == 0)
printf("%d is even.", a);
else
printf("%d is odd.", a);
return 0;
}
#include <stdio.h>
int main() {
int a;
printf("Enter an number to check even or odd:-\n ");
scanf("%d", &a);
if(a % 2 == 0)
printf("%d is even.", a);
else
printf("%d is odd.", a);
return 0;
}
Comments
Post a Comment