Advertisement
dsdeep

Task-1.4

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