Program in c to find that entered year is leap year or not.


    Program to find that entered year is leap year or not.

#include<stdio.h> 

#include<conio.h>

void main()

{

int n; clrscr();

printf(“enter any year: ”);

 scanf(“%d”,&n);

 if(n%4==0)

printf(“year is a leap year”);

 else

printf(“year is not a leap year”);

 getch();

}

Output:

enter any year: 1947 

year is not a leap year

Share:

No comments:

Post a Comment

Popular Posts

Powered by Blogger.

About Me

My photo
HARDOI, Uttar Pradesh, India
I AM DEEPAK SHARMA I AM A WEB developer andBLOGGER AND DATA ENTRY EXPERT , AND photo EDITING EXPERT . I LIVE IN INDIA

Ticker

6/recent/ticker-posts

Slider

5/random/slider

Search This Blog

About

About
TOOL5984.BLOGSPOST.COM

WELCOME TO TOOL5984 (C,C++,JAVA , ETC ALL PROGRAMS

WELCOME TO TOOL5984 (C,C++,JAVA , ETC ALL PROGRAMS
Graphic resources for everyone.

Technology

3/Technology/col-right
C Programs with example

Recent Posts

Unordered List

  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  • Aliquam tincidunt mauris eu risus.
  • Vestibulum auctor dapibus neque.

Sample Text

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation test link ullamco laboris nisi ut aliquip ex ea commodo consequat.

Pages

Theme Support

Need our help to upload or customize this blogger template? Contact me with details about the theme customization you need.