Javatpoint Logo
Javatpoint Logo

Program to find the surface area of cuboid

Explanation

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.

Formula

Algorithm

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

Complexity

O(1)


Solution

Python

Output:

Surface Area of Cuboid is:  62

C

Output:

Surface Area of Cuboid is:  62.00000

JAVA

Output:

Surface Area of Cuboid is:  62.0

C#

Output:

Surface Area of Cuboid is:  62

PHP

Output:

Surface Area of cuboid is  = 62

Next Topic#




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA