#include <iostream.h>
float waktu (float vo,float vt,float n)
{
float hasil;
hasil = vt / (vo + n);
cout <<"Hasil Waktu Tempuh Perjalanan : "<<hasil;
}
int main()
{
float vo,vt,n,hasil;
cout <<"MENENTUKAN WAKTU TEMPUH KENDARAAN" << endl;
cout <<"Kecepatan Awal : ";
cin >> vo;
cout <<"Kecepatan Akhir : ";
cin >> vt;
cout <<"Masukkan Percepatan : ";
cin >> n;
hasil=waktu(vo,vt,n);
return 0;
}
hasilnya
jarak tempuh
19.10 |
Langganan:
Posting Komentar (Atom)
Blogger news
Popular Posts
-
Functions (I) Using functions we can structure our programs in a more modular way, accessing all the potential that structured programming...
-
RUP (Rational Unified Process) RUP (Rational Unified Process) merupakan suatu Software engineering process has...
-
Assalamualaikum. . . . . Bertemu lagi dengan saya dalam pertemuan kuliah ke 5, jumat kemarin saya belajar cara set Date Anda Time in Win...
-
Assalamu’alaikum wr wb.. Oke bertemu lagi sama saya, dalam kesemapatan ini saya akan mencoba mereview kuiah pemograman windows phone di...
-
RUP (Rational Unified Process) RUP (Rational Unified Process) merupakan suatu Software engineering process has...








0 komentar:
Posting Komentar