Advertisement
Bivas_Saha

Problem 1

May 27th, 2019
110
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 a;
  5.     printf("Enter a year:");
  6.     scanf("%d", &a);
  7.     if(a%100!=0 && a%400==0 && a%4==0)
  8.         printf("It's a leap-year");
  9.     else
  10.         printf("It's not a leap-year");
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement