Write a C Program to check Weather a Year is Leap or Not Sumit Kar September 05, 2014 C - Programming No comments #include<stdio.h>void main(){ int y; printf("Enter a year: "); scanf("%d",&y); if(y%4==0&&(y%400==0||y%100!=0)) printf("Leap Year"); else printf("Not a Leap Year");} Share This: Facebook Twitter Google+ Stumble Digg WhatsApp Email ThisBlogThis!Share to TwitterShare to Facebook
0 comments:
Post a Comment