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—

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Ikuti

Get every new post delivered to your Inbox.