Source Code C++ Menghitung Volume Balok


Di bawah ini adalah source code untuk menghitung volume balok.

/*— copy here —*/

// A. Program menghitung Volume Balok
#include “iostream.h”

main ()
{
float Panjang, Tinggi, Lebar, Volume;
cout<<” Masukkan Panjang “;
cin>>Panjang ;
cout<<” Masukkan Lebar “;
cin>>Lebar;
cout<<” Tinggi “;
cin>>Tinggi;
Volume=Panjang*Tinggi*Lebar;
cout<<“Volume= “;
cout<<Volume;
return 0;
}

—Selamat Mencoba—

Iklan

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s