//write a program to accept intial velocity, acceleration and time. print the final velocity and the distance travelled.
#include<stdio.h>
void main()
{
float u, a, t, V, S;
printf("\n Enter intial velocity :");
scanf("%f", &u);
printf("\n Enter acceleration :");
scanf("%f", &a);
printf("\n Enter time required :");
scanf("%f", &t);
V = u+a*t;
S = u*t+(1/2)*a*t*t;
printf("\n the final velocity is %f", V);
printf("\n\n The disatance travelled is %f \n\n", S);
}