-->

solution5

// program to get ‘S’ using given formula
#include<stdio.h>
#include<conio.h>
void main()
{
float u,t,a;
float s;
printf(“enter  value of ‘u’\n”);
scanf(“%f”,&u);
printf(“please enter value of ‘t’\n”);
scanf(“%f”,&t);
printf(“please enter value of ‘a’\n”);
scanf(“%f”,&a);
s=u*t+(1.0/2.0)*a*t*t;
printf(“the value=%f\n”,s);
getch();

}