Computer Science, asked by shivanishivu6783, 1 year ago

Write a program to check whether a given year is a leap year or not in c by freshertraining

Answers

Answered by kapil19jun01
2

Answer:

#include<stdio.h>

#include<conio.h>

void main()

{

clrscr();

int a;

printer("enter the value of a");

scanf("%d",&a);

if(a%2==0)

{ printf("year is leap");

}

else

{printf("year is not leap");

}

getch();

}

output-:

enter the value of a

2020

year is leap

Answered by shirisha1981
1

Answer:#include<stdio.h>

#include<conio.h>

void main()

{

clrscr();

int a;

printer("enter the value of a");

scanf("%d",&a);

if(a%2==0)

{ printf("year is leap");

}

else

{printf("year is not leap");

}

getch();

}

output-:

enter the value of a

2020

year is leap

Read more on Brainly.in - https://brainly.in/question/9581972#readmore

Similar questions