// programme to find the distance. //Entre the value of Velocity ,accelaration,and time.
//compilar - Microsoft visual studio 2008 #include "stdafx.h" #include <iostream>; using namespace std; int main () { float vel,acc,time,dis; cout<<"Enter the value of VELOCITY "; cin>>vel; cout<<"Enter the value of ACCELERATION"; cin>>acc; cout<<"Enter the value of TIME"; cin>>time; dis=vel*time+0.5*acc*time*time; cout<<"Total Distance"<<dis; cout<<endl; system("pause"); return 0;
}
------------------------------------------------------------------------------
The Output of this programme is :
0 comments:
Post a Comment