SabirSazzad

Leap year cheak

Feb 20th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2. int main ()
  3. {
  4.     int year;
  5.     printf("Enter a year to cheak if it is a leap year\n");
  6.     scanf("%d",&year);
  7.     if(year%400==0||year%100==0||year%4==0);
  8.     printf("%d is a leap year.\n",year);
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment