c program to find number is even or odd

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;
}


Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.