#include<stdio.h>
int main()
{
int x = 0;
printf("Input an integer:\n");
scanf("%d", &x);
if (x == 0 || x % 2 == 0) {
printf("%d is an even integer\n", x);
}
else {
printf("%d is an odd integer\n", x);
}
return 0;
}
#include<stdio.h>
int main()
{
int x = 0;
printf("Input an integer:\n");
scanf("%d", &x);
if (x == 0 || x % 2 == 0) {
printf("%d is an even integer\n", x);
}
else {
printf("%d is an odd integer\n", x);
}
return 0;
}