C program to find even or odd number.

 

01 #include<stdio.h>
02 int main()
03 {
04 int n;
05 printf("Enter an integern");
06 scanf("%d",&n);
07 if ( n%2 == 0 )
08 printf("Evenn");
09 else
10 printf("Odd");
11 return 0;
12 }
 
OUTPUT:

Enter an integer
12
Even

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.