#include<iostream>
#include<conio.h>
using namespace std;
float surface_area(float l,float b,float h)
{
return(2*(l*b+b*h+l*h));
}
int main()
{
float l,b,h;
cout<<"Length = ";cin>>l;
cout<<"Breadth = ";cin>>b;
cout<<"Height = ";cin>>h;
cout<<"Surface Area = "<<surface_area(l,b,h);
getch();
return(0);
}
No comments:
Post a Comment