>>58
//グローバル変数
#include <stdio.h>

float m=10.0f; //質量
float v0=3.0f; //初期速度
float a=7.0f; //加速度
float t=25.0f; //経過時間

float v; //物体の速度
float x; //移動距離
float j; //運動エネルギー

//速度
float get_vel()
{
    return v0+a*t;
}

//移動距離
float get_dis()
{
    return v0*t+a*t*t/2.0f;
}

//運動エネルギー
float get_e()
{
    return m*v*v/2.0f;
}