You are on page 1of 1

//wap to find the distance of the object//

#include<stdio.h>
#include<conio.h>
int main()
{
int u,t,a;
float s;
printf("enter u,t,a values:");
scanf("%d%d%d",&u,&t,&a);
s=(u*t)+(a*t*t)/2.0;
printf("s value is %f",s);
getch();
return 0;
}

You might also like