0
959views
Write a Program to find whether the given year is Leap year or not

Subject : Structured Programming Approach

Title : Control Structures

Marks : 5M

1 Answer
0
51views
#include<stdio.h>
#include<conio.h>
void main()
{
int year;
clrscr();
    printf("Enter a year:");
scanf("%d",&year);
if(year%4==0&&year%100!=0||year%10
         ==0 && year%400==0)
printf("Leap Year");
else
printf("Not a leap year");
getch();
}
Please log in to add an answer.