/*Program
to find enter year leap year or not*/
#include<conio.h>
#include<stdio.h>
void
main()
{
int
year;
clrscr();
printf("Enter
any year");
scanf("%d",&year);
if(year%4==0)
printf("Leap year");
else
printf("is not a Leap year");
getch();
}
/*Program
to find enter no Even or Odd number*/
#include<conio.h>
#include<stdio.h>
Void main
()
{
int
no;
clrscr();
printf("Enter
any no");
scanf("%d",&no);
if(no%2==0)
printf("Even no.");
else
printf("Odd no.");
getch();
}
No comments:
Post a Comment