#include
#include
main ()
{
int cuenta,i,x,y,j,suma;
cuenta=0;
clrscr();
for (i=2;cuenta<4;i++)
{
suma=0;
x=i%2;
if (x==0)
x=(i/2);
else
x=(i+1)/2;
for (j=1;j<=x;j++)
if (i%j==0)
suma=suma+j;
if (suma==i)
{
printf("%d\n",i);
cuenta=cuenta+1;
}
}
getch();
}
A Greek town with natural aquifers on the sea shore Therma Ikaria
-
On the Greek island of Ikaria there isn't just quietness, life span (it is
one of the longest-lived spots on earth), communities, and shrouded sea
shores t...
Hace 4 años
0 comentarios:
Publicar un comentario