编辑代码

#include <stdio.h>
#define T 7
float length = 0;
int time = 0;
float now;

float drop(float high)
{
    time++;
    if(time==1){
        length+=high;
    }
    else{
          length += 2*high; 
    }
    
    if(time>=T){
        return high/2;
    }
    return drop(high/2);
}

int main () {
    now = drop(1.0);
    printf("%f\n",length);
    printf("%f",now);    
	printf("Hello JSRUN!   \n\n         - from C .");
	return 0;
}