Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Program Menentukan Volume Balok
- // Task No.2 file 066-P02.pptx
- // Amrul Mubarak Harahap
- // 19T03 - 1901098
- #include <iostream>
- using namespace std;
- int main(){
- float p, l, t, rumus;
- cout << "===============================" << endl;
- cout << "Program Menghitung Volume Balok" << endl;
- cout << "===============================" << endl;
- cout << "Masukkan panjang : "; cin >> p;
- cout << "Masukkan lebar : "; cin >> l;
- cout << "Masukkan tinggi : "; cin >> t;
- rumus = p*l*t;
- cout << "Volume balok dengan panjang = " << p << " cm, lebar = " << l
- << " cm \ndan tinggi = " << t << " cm adalah " << rumus << " cm^3" << endl << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement