Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(int argc, char *argv[])
- {
- unsigned int anyo;
- printf("Teclea el ano \n");
- scanf("%d", &anyo);
- if ( ( anyo % 4 == 0 && anyo % 100 != 0 ) || ( anyo % 400 == 0 ) )
- {
- printf("Es bisiesto. ");
- }
- else
- {
- printf("No es bisiesto ");
- }
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment