Program to enter, acceleration and time and print velocity using the formula: v=u+a*t

Program to enter, acceleration and time and print velocity using the formula: v=u+a*t
#include <iostream>
using namespace std;
int main(){
       int u, t, a;
       cout << "Enter initial velocity" << endl;
       cin >> u;
       cout << "Enter accerlaction" << endl;
       cin >> a;
       cout << "Enter time" << endl;
       cin >> t;
       u = u + a*t;
       cout << "Final Velocity is " << u << endl;
      





       system("pause");
       return 0;

}


Comments