Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include<stdio.h>
  2. main()
  3. {
  4. int a;
  5. scanf("%d",&a);
  6. if (a%400==0)
  7. {
  8. printf("This is leap Year");
  9. }
  10. else if(a%100==0)
  11. {
  12. printf("This is leap Year");
  13. }
  14. else if (a%4==0)
  15. {
  16. printf("This is leap Year");
  17. }
  18. else
  19. {
  20. printf("This is not leap Year");
  21. }
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement