#include <stdio.h>
int main()
{ int n;
printf("enter a number");
scanf("%d",&n);
if ( n%2 == 0)
{
printf("number is even");
}
else
{
printf("number is odd ");
}
return 0;
}
HERE :
% is an arithmetic operator in C that returns the remainder when the left operand is divided by the right operand.
0 Comments