#include<stdio.h>
#include<conio.h>
void main()
{
  int u,a,t,i=0,inc;
  float s=0;
  clrscr();
  printf("enter the values of u,a,t\n");
  scanf("%d%d%d",&u,&a,&t);
  printf("\nenter the time interval");
  scanf("%d",&inc);
   while(i<=t)
  {
   s=u*i+.5*a*i*i;
   printf("\nthis is the value of s at %d :%f",i,s);
   i=i+inc;
  }
  getch();
}
