Movement of the body-solution
#include < stdio.h >
using namespace std;
int main()
{
double a,t,s,v; // a-acceleration, t-time, s-crossed path
// v - current speed after
scanf("%lf%lf", &a, &t); // read a in m / s ^ 2, time in seconds
v=a*t; // instantaneous speed with evenly accelerated movement
s=a*t*t/2; // displasment after time t in m
printf("%.2fm/s\n%.2fm",v,s); // display the result
return 0;
}
using namespace std;
int main()
{
double a,t,s,v; // a-acceleration, t-time, s-crossed path
// v - current speed after
scanf("%lf%lf", &a, &t); // read a in m / s ^ 2, time in seconds
v=a*t; // instantaneous speed with evenly accelerated movement
s=a*t*t/2; // displasment after time t in m
printf("%.2fm/s\n%.2fm",v,s); // display the result
return 0;
}