Description:
Check whether a number is even or odd.
Check whether a number is even or odd.
C Code
#include <stdio.h>
int main() {
int num = 17;
if (num % 2 == 0)
printf("%d is Even\n", num);
else
printf("%d is Odd\n", num);
return 0;
}
Expected Output
17 is Odd