Advertisement
MOHD_NASIR_UDDIN42

02-Leap Year-codemarshal.

May 21st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int year;
  5.     scanf("%d",&year);
  6.     if(year%400==0 || year%100!=0 && year%4==0)
  7.     {
  8.         printf("Leap Year\n");
  9.     }
  10.     else
  11.         printf("Not Leap Year\n");
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement