14-Write a C program to find that it is leap year or not.
Program: 14
Write a C program to find that it is leap year or not.
#include#includevoidmain(){inty;printf("Enter a year: ");scanf("%d",&y);if(y%4==0){printf("%d is leap year.",y);}elseprintf("%d is not a leap year.",y);getch();}
Lokesh Kumar: Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.
Leave a Comment