Program Menghitung Kecepatan Dan Jarak Tempuh
Posted by Budi Arieyanto | Posted in Borlant C++ | Posted on 05.00
#include<iostream.h>
#include<conio.h>
void main()
{
const float Vo=0;
float Vt,St,a,t;
clrscr();
cout<<"MENGHITUNG KECEPATAN DAN JARAK TEMPUH PADA GERAK LURUS BERATURAN"<<endl;
cout<<"\n\nMasukan a = ";cin>>a;
cout<<"Masukan t = ";cin>>t;
Vt=Vo+a*t;
St=Vo*t+0.5*a*t*t;
cout<<"\n\nNilai Vt = "<<Vt<<endl;
cout<<"\n\nNilai St = "<<St<<endl;
getche();
}


Comments (0)
Posting Komentar