{"id":18015,"date":"2021-08-26T10:42:18","date_gmt":"2021-08-26T05:12:18","guid":{"rendered":"https:\/\/python-programs.com\/?p=18015"},"modified":"2021-11-22T18:37:13","modified_gmt":"2021-11-22T13:07:13","slug":"python-program-to-find-volume-and-surface-area-of-a-cube","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-find-volume-and-surface-area-of-a-cube\/","title":{"rendered":"Python Program to Find Volume and Surface Area of a Cube"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Find Sum of Arithmetic Progression Series<\/a>
\nSurface Area of a Cube :<\/strong><\/p>\n

If we know the length of an edge in a Cube, we can use the following formula to calculate the surface area of a Cube:<\/p>\n

Cube Surface Area = 6S\u00b2 <\/strong><\/p>\n

In which\u00a0 S= length of any side of a Cube<\/p>\n

A square’s area = S\u00b2. Surface Area of a Cube = 6S\u00b2\u00a0 because the Cube is made up of 6 equal squares.<\/p>\n

The volume of a Cube :<\/strong><\/p>\n

Volume refers to the amount of space inside the Cube. If we know the length of any edge of a Cube, we can use the following<\/p>\n

Formula to calculate the Volume of the Cube:\u00a0<\/strong> S*S*S*<\/p>\n

A Cube’s Lateral Surface Area<\/strong>\u00a0= 4 * (S * S)<\/div>\n
<\/div>\n
Given the side of a cube and the task is to find the surface area, volume, and lateral surface for a given side of a cube.<\/div>\n
\n

Examples:<\/strong><\/p>\n

Example 1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given side length of a cube = 12<\/pre>\n

Output:<\/strong><\/p>\n

The given surface Area of a Cube with side length [ 12 ]= 864.000\r\nThe given volume of a Cube with side length [ 12 ]= 1728.000\r\nThe given lateral surface area of a Cube with side lngth [ 12 ]= 576.000<\/pre>\n<\/div>\n
\n
\n

Example 2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given side length of a cube = 4<\/pre>\n

Output:<\/strong><\/p>\n

The given surface Area of a Cube with side length [ 4 ]= 96.000\r\nThe given volume of a Cube with side length [ 4 ]= 64.000\r\nThe given lateral surface area of a Cube with side lngth [ 4 ]= 64.000<\/pre>\n

Program to Find Volume and Surface Area of a Cube in Python<\/h2>\n

Below are the ways to find the surface area, volume, and lateral surface for a given side of a cube:<\/p>\n