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<<"\n\n*****************************************"<<endl;
   cout<<"Value Enter for veloricty is:"<<vi<<endl;
   cout<<"Value Enter for Time is:"<<t<<endl;
   cout<<"Value Enter for  Accelaration:"<<a<<endl;
   cout<<"Distance covered by the object:"<<s<<endl;
   cout<<"\n\n*****************************************";
  getch();
  }