c program to find number is even or odd
Harsh Patel
June 02, 2024
c program to find number is even or odd
#include<stdio.h>
int main()
{
int n;
printf("enter the number: ");
scanf("%d",&n)
if (n%2==0)
{
printf("%d is even number",n);
} else {
printf("%d is odd number",n);
}
return 0;
}