Calidad
2
# . # . () 0 (" 13") ("%",&) (()) (1000) ((%40) && !(%1000)) (" ") (%4000) (" ") (" ") ('' '' ) ('' '') ('''') 0
-
Upload
charly-noctis-lucis-caelum -
Category
Documents
-
view
213 -
download
0
description
c++
Transcript of Calidad
-
#include
#include
int main()
{
int ye = 0 ;
printf("Introduce un ao como el siguiente ejemplo:1993");
scanf("%c",&ye);
if(isdigit(ye))
{
if (ye>=1000)
{
if((ye%4==0) && !(ye%100==0))
{
printf("El ao es bisiesto");
}
else if (ye%400==0)
{
printf("El ao es bisiesto");
}
else
{
printf("El ao NO es bisiesto");
}
}
else
{
printf(''numero demasiado pequeo sigue el ejemplo mostrado al inicio'' );
}
}
else
{
printf(''este no es un numero'');
}
system(''PAUSE'');
return 0;
}