Advertisement
aiNayan

Task3

Aug 17th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include<stdio.h>
  2. int
  3. main ()
  4. {
  5.   int n;
  6.   printf ("Enter the year: ");
  7.   scanf ("%d", &n);
  8.   if (n % 4==0)
  9.     printf ("%d is a leap year", n);
  10.   else
  11.     printf ("%d is not a leap year", n);
  12.   return 0;
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement