Advertisement
Raddia_Akter_Hride

problem_1

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