#include<stdio.h>
int main()
{
int n;
printf("Enter an integer Number:\n");
scanf("%d",&n);
if(n%2==0)
{
printf("The given no %d is an even number",n);
}
else {
printf("The given no %d is an odd number",n);
}
return 0;
}
Note: Need to be arranged in compiler after copied
OutPut:
Enter an integer Number:
22
The given no 22 is an even number