Pages - Menu
HOME
GADGETS
ANDROID
SOFTWARES
COMPUTER TRICKS
ABOUT US
PRIVACY DISCLAIMER
CONTACT
Program for Even or Odd
/*check even or odd*/
#include<stdio.h>
#include<conio.h>
main()
{
int a;
clrscr();
printf("enter the value of a");
scanf("%d",&a);
if(a%2==0)
{
printf("%d is even",a);
}
else
printf("%d is odd",a);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment