#include
int main() { float u,a,d; int t;
printf(“\nEnter the value of a : “); scanf(“%f”,&a);
printf(“\nEnter the value of u : “); scanf(“%f”,&u);
printf(“\nEnter the value of t : “); scanf(“%d”,&t);
d = (u * t) + (a * t * t)/2;
printf(“\n The Distance : %f”,d);
return 0; }
Enter the value of a : 10
Enter the value of u : 20
Enter the value of t : 5
The Distance : 225.000000