Entri Populer

Selasa, 25 Januari 2011

C++ Programming : Program 4-A Program to enter velocity, acceleration and time and print final velocity using the formula : v = u + a * t

Click here for C++ PROGRAM
#include <iostream.h>
#include <conio.h>

void main()
{
clrscr();
int v,u,a,t;
cout << "Enter the velocity, acceleration, time as integers : " << endl;
cin>>u>>a>>t;
v=u+a*t;
cout << "The final velocity is " << v << "." << endl;
getch();
}

Tidak ada komentar:

Posting Komentar