Tuesday, 20 October 2015

C program to print whether the no. is Even or Odd

#include<stdio.h>
#include<conio.h>
void main()
{
 int num;
 clrscr();
 printf(" enter any no. :");
 scanf("%d",&num);
 if(num%2==0)
              printf("\n no. is even");
 else
              printf("\n no. is odd");
 getch();
 }


No comments:

Post a Comment