First Equation Of Motion Calculation In C++

Coding:


#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float vi,a,t;
cout<<"\n\t\t******The First Equaction of Motion******"<<endl;
cout<<"\n\t\tEnter the Initial velocity vi = ";
cin>>vi;
cout<<"\n\t\tEnter the Accelaration a = ";
cin>>a;
cout<<"\n\t\tEnter the Time t = ";
cin>>t;
cout<<"\n\t\tvf=vi+at"<<endl;
cout<<"\n\t\tvf="<<vi<<"+"<<a<<"*"<<t<<endl;
cout<<"\n\t\tvf="<<vi+a*t;
getch();
}

Share To:

Adeel Rasheed

Full Stack Website Developer

Post A Comment:

0 comments so far,add yours