Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main ()
- {
- int year ;
- printf ("Indique o ano: ") ;
- scanf ("%d" , &year) ;
- if (year % 4 == 0 && (year % 400 == 0 || year % 100 != 0)) printf ("O ano é bissexto.\n") ;
- else printf ("O ano não é bissexto.\n") ;
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment