Twitter Feed Facebook Google Plus Youtube

Adsense responsive

Recent Post below header

Saturday, 2 February 2013

C PROGRAM: TO CHECK WHETHER A GIVEN NUMBER IS EVEN OR ODD

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


CODING

OUTPUT

For any query or suggestion please comment below...

No comments:

Post a Comment