#include<iostream.h>
#include<string.h>
#include<math.h>
#include<conio.h>
float a,b,c,d;
void main()
{
cout<<"\t\t================================="<<endl;
cout<<"\t\t=Menghitung Luas Permukaan Balok="<<endl;
cout<<"\t\t================================="<<endl<<endl;
cout<<"\tMasukkan Nilai panjang : ";cin>>a;
cout<<"\tMasukkan Nilai lebar : ";cin>>b;
cout<<"\tMasukkan Nilai tinggi : ";cin>>c;
d=2*(a*b)+2*(a*c)+2*(b*c);
cout<<" "<<endl;
cout<<"\tLuas Permukaan Balok adalah : "<<d<<endl;
getch();
}
0 komentar:
Posting Komentar