#include<iostream.h>
#include<string.h>
#include<windows.h>
#include<conio.h>
float a,b,c,d;
void main()
{
system ("color
5e");
cout<<"\t\t*********************************"<<endl;
cout<<"\t\t* Menghitung Volume Balok *"<<endl;
cout<<"\t\t*********************************"<<endl<<endl;
cout<<"\t\tMasukkan
Nilai panjang :
";cin>>a;
cout<<"\t\tMasukkan
Nilai lebar :
";cin>>b;
cout<<"\t\tMasukkan
Nilai tinggi :
";cin>>c;
d=a*b*c;
cout<<"
"<<endl;
cout<<"\t\tVolume
Balok adalah :
"<<d<<endl;
getch();
}
hasilnya:

No comments:
Post a Comment