Computer Science, asked by tanPro, 5 months ago

Write the Visual Basic code to calculate the Lateral Surface Area of a Cuboid. Accept the input using the textbox and display the output on the run time screen. (Use Variables) **Lateral Surface Area= 2H(L+B)

Answers

Answered by bhupathlete03
0

Answer:

In this program, we have a cuboid with some length, width and height. We need to find its Surface Area.

A cuboid is a three-dimensional geometrical figure/container having six rectangular surfaces with the different sum of dimensions (length, width, and height) where every two opposite faces are of equal length width and height.

Surface Area Of Cuboid = 2lw + 2lh + 22hw = 2( lw + lh + hw ).

l is length, w is width and h is height.

Algorithm.

  • Define values for all dimensions.
  • Use these values in the given formula.
  • Print the Surface Area of Cuboid.

Python.

l = 2

w = 3

h = 5

surfacearea =2*( l *w + w* h + h*l)

print("Surface Area of Cuboid is : ");

print (surfacearea);

Output:

Surface Area of Cuboid is: 62

C..

#include<stdio.h>

int main()

{

float l , w, h, surfacearea;

l= 2;

w = 3;

h = 5;

surfacearea =2*( l *w + w* h + h*l);

printf("\n\n Surface Area of Cuboid is : %f", surfacearea);

return (0);

}

Output:

Surface Area of Cuboid is: 62.00000

Explanation:

Hope it will help you.....

Similar questions