#include <iostream.h>
#include <conio.h>
void main()
{
int ac, t, v;
cout<< "Enter acceleration in cm per second square ";
cin >> ac;
cout<< " Enter time to travarse ";
cin >> t;
v = ac * t;
// formula of final vel = initial vel + acceleration * time (initial vel = 0)
cout << " Final velocity = " << v << " cm / sec*sec ";
getch();
}
#include
void main()
{
int ac, t, v;
cout<< "Enter acceleration in cm per second square ";
cin >> ac;
cout<< " Enter time to travarse ";
cin >> t;
v = ac * t;
// formula of final vel = initial vel + acceleration * time (initial vel = 0)
cout << " Final velocity = " << v << " cm / sec*sec ";
getch();
}
No comments:
Post a Comment