5.编写程序,在公式s=v0t+1/2at2中,已知v0=10.2,a=9.8,求任意时刻t对应的位移s。
int main() { float t; scanf("%f",&t); printf("%f\n",10.2*t+0.5*9.8*t); return 0; }
望采纳!