#include<stdio.h>
int main()
{
int i, t;
double h = 100;
printf("Please enter the first few times:\n");
scanf("%d", &t);
for(i = 0; i < t; i++)
{
h /= 2;
}
printf("The height is:\n%f\n",h);
return 0;
}
#include<stdio.h>
int main()
{
int i, t;
double h = 100;
printf("Please enter the first few times:\n");
scanf("%d", &t);
for(i = 0; i < t; i++)
{
h /= 2;
}
printf("The height is:\n%f\n",h);
return 0;
}