Tuesday 10 January 2012

#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();
  }