#include<iostream.h>
#include<conio.h>
void main()
{
int vi, t,a;
float s;
cout<<"Enter value for velocity:";
cin>>vi;
cout<<"Enter value for time:";
cin>>t;
cout<<"Enter value for a:";
cin>>a;
s=vi*t+1/2*a*t*t;
cout<<"Distance covered by the object:"<<s;
getch();
}
#include<conio.h>
void main()
{
int vi, t,a;
float s;
cout<<"Enter value for velocity:";
cin>>vi;
cout<<"Enter value for time:";
cin>>t;
cout<<"Enter value for a:";
cin>>a;
s=vi*t+1/2*a*t*t;
cout<<"Distance covered by the object:"<<s;
getch();
}