How to write a C program to determine if a number is odd or even ?
Info! C program to determine if a number is odd or even
Solution:#include <stdio.h>
int main()
{
int x;
scanf("%d", &x);
if(x % 2 == 0)
printf("Even");
else
printf("Odd");
return 0;
}
This C Program Determine If a Number is Odd or Even