Berikut Program C++ untuk mencari volume balok .
#include<stdio.h>
#include<conio.h>
#include<iostream.h>
void main ()
{
float p,l,t;
float Volume;
cout<<"Program Volum Balok"<<endl<<endl;
cout<<"Masukkan Panjang Balok: ";cin>>p;
cout<<"Masukkan Lebar Balok: ";cin>>l;
cout<<"Masukkan Tinggi Balok: ";cin>>t;
Volume = p*l*t;
cout<<"Volume Balok = "<<Volume<<endl;
getch();
}
#include<stdio.h>
#include<conio.h>
#include<iostream.h>
void main ()
{
float p,l,t;
float Volume;
cout<<"Program Volum Balok"<<endl<<endl;
cout<<"Masukkan Panjang Balok: ";cin>>p;
cout<<"Masukkan Lebar Balok: ";cin>>l;
cout<<"Masukkan Tinggi Balok: ";cin>>t;
Volume = p*l*t;
cout<<"Volume Balok = "<<Volume<<endl;
getch();
}
0 Response to "Program C++ Volume Balok"
Posting Komentar