Program to find a year is leap year leap year or not January 01, 2018 Programing In C No comments #include<conio.h> #include<stdio.h> void main() { int a; clrscr(); printf("Enter the year"); scanf("%d",sa); if(a%4==0) { printf("year is a leap year"); } else { printf("year is not a leap year"); } getch(); } Output Enter the year 2017 year is not a leap year Enter the year 2016 year is a leap year Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment