Está en la página 1de 1

//SABER SI UN AO ES BICIESTO

#include"stdio.h"

#include"conio.h"

main()

char nombre[40];

int an;

printf("nombre: ");

gets(nombre);

printf("en que ao naciste: ");

scanf("%i",&an);

if ((an%4==0)&&((an%100!=0)||(an%400==0)))

printf("el ao %i es bisiesto ",an);

else

printf("el ao %i no es bisiesto",an);

getch();

También podría gustarte