Even Odd Number Checking

Initialize








Step Execution

#include <stdio.h>
int main()
{
int number;
printf("Enter an integer: ");
scanf("%d", &number);
if(numbre!=0)
{
if(number%2 == 0)
{
printf("%d is even.", number);
}
else
}
printf("%d is odd.", number);
}
}
else
printf("%d is zero.", number);
}
retrun 0;
}

Code Output