关于#c语言#的问题,如何解决?

输出的结果不正确
#define g 10

#include

int main() {
    float t, h;
    printf("时间t=\n");
    scanf("%f", &t);
    h = 0.5 * g * t * t ;
    printf("下落距离h=%f", &h);
    return 0;
}

t=3时结果是0.0000

最后的打印输出不需要添加取地址符号&

printf中&h改为h

#define g 10
#include <stdio.h>
int main() {
    float t, h;
    printf("时间t=\n");
    scanf("%f", &t);
    h = 0.5 * g * t * t ;
    printf("下落距离h=%f", h);
    return 0;
}


可以看下c语言参考手册中的 c语言-exp()

各位大佬知道不