double要用%lf#includevoid main(){ double h,w,t; printf("please input your height\n"); printf("h="); scanf("%lf",&h); printf("please input your weight\n"); printf("w="); scanf("%lf",&w); printf("t="); t=(w/(h*h)); printf("%8.4lf\n",t); if(t=18&&t=25&&t<27) printf("You are over weight"); else printf("Your weight is too high");}