#include <stdio.h>
int main ()
{
double h=100.0,sum=100.0;
int i,j;
for(i=0;i<9;i++)
{
sum=sum+h;
h=h/2;
}
printf("%f\n",h/2);
printf("sum=%f\n",sum);
return 0;
}
int main ()
{
double h=100.0,sum=100.0;
int i,j;
for(i=0;i<9;i++)
{
sum=sum+h;
h=h/2;
}
printf("%f\n",h/2);
printf("sum=%f\n",sum);
return 0;
}