Tag Archives for odd or even
odd or even
C program to check whether the number is odd or even. You can add scanf call to read numbers from user. #include<stdio.h> int main () { int num1,num2,result; num1=10; num2=2; result= num1%num2; if (result==0) printf("odd\n"); else printf("even\n"); }

