Write a C program to find out distance travelled by the equation d = ut + at^2

#include<stdio.h>

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;

}

/*54745756836*/

Leave a Comment