Check
Whether a Number is Even or Odd:
#include <stdio.h>
int main()
{
int n;
printf("Enter any integer: ");
scanf("%d",&n);
if(n%2 ==
0)
printf("%d is even.", n);
else
printf("%d is odd.", n);
return 0;
}
0 comments:
Post a Comment
if you have any doubt please let me know