# Program for Surface area of Dodecahedron

Given the edge of the dodecahedron calculate its surface area. Surface area is the amount of space that all the faces of the shape takes up.

**Formula: **

Examples:

Input : 3 Output : 185.812 Input : 7 Output : 1011.64

A ** dodecahedron **is a 3-dimensional figure made up of 12 faces, or flat sides. All of the faces are pentagons of the same size.The word ‘dodecahedron’ comes from the Greek words dodeca (‘twelve’) and hedron (‘faces’). Every shape has properties and characteristics.So has dodecahedron

- 12 equal pentagonal faces
- 20 vertices
- 30 edges

where pentagon is a 2-dimensional shape with 5 straight sides and 5 vertices. So, a dodecahedron has 12 of these flat, equal pentagonal faces.So one can think dodecahedron as a 12 faced dice(Usually not seen) but can be in a Battleball board game.

## C++

`// CPP program to calculate ` `// surface area of dodecahedron ` `#include <bits/stdc++.h> ` `using` `namespace` `std; ` ` ` `// utility Function ` `double` `area_of_dodecahedron(` `int` `side) ` `{ ` ` ` `return` `((3 * ` `sqrt` `(25 + 10 * (` `sqrt` `(5)))) ` ` ` `* (` `pow` `(side, 2))) ; ` `} ` ` ` `// Driver Function ` `int` `main() ` `{ ` ` ` `int` `side = 3; ` ` ` ` ` `cout<< ` `"Surface area of dodecahedron = "` ` ` `<< area_of_dodecahedron(side); ` ` ` ` ` `return` `0; ` `} ` |

*chevron_right*

*filter_none*

## Java

`//Java program to calculate ` `// surface area of dodecahedron ` ` ` `class` `GFG ` `{ ` ` ` ` ` `// Utility Function ` ` ` `static` `double` `area_of_dodecahedron(` `int` `side) ` ` ` `{ ` ` ` `return` `((` `3` `* Math.sqrt(` `25` `+ ` `10` `* (Math.sqrt(` `5` `)))) ` ` ` `* (Math.pow(side, ` `2` `))) ; ` ` ` `} ` ` ` ` ` `// Driver Function ` ` ` `public` `static` `void` `main (String[] args) ` ` ` `{ ` ` ` `int` `side = ` `3` `; ` ` ` `System.out.println(` `"Surface area of dodecahedron ="` ` ` `+ area_of_dodecahedron(side)); ` ` ` `} ` ` ` `} ` ` ` `// This code is contributed by Azkia Anam. ` |

*chevron_right*

*filter_none*

## Python3

`# Python program to calculate ` `# surface area of dodecahedron ` `import` `math ` ` ` `# utility Function ` `def` `area_of_dodecahedron(side): ` ` ` ` ` `return` `((` `3` `*` `math.sqrt(` `25` `+` `10` `*` `(math.sqrt(` `5` `))))` `*` `(math.` `pow` `(side, ` `2` `))) ` ` ` `# Driver Function ` `side ` `=` `3` `print` `(` `"Surface area of dodecahedron = "` `, ` ` ` `round` `(area_of_dodecahedron(side), ` `3` `)) ` ` ` `# This code is contributed ` `# by Azkia Anam. ` |

*chevron_right*

*filter_none*

## C#

`//C# program to calculate ` `// surface area of dodecahedron ` `using` `System; ` ` ` `class` `GFG ` `{ ` ` ` ` ` `// Utility Function ` ` ` `static` `float` `area_of_dodecahedron(` `int` `side) ` ` ` `{ ` ` ` `return` `(` `float` `)((3 * Math.Sqrt(25 + 10 * (Math.Sqrt(5)))) ` ` ` `* (Math.Pow(side, 2))) ; ` ` ` `} ` ` ` ` ` `// Driver Function ` ` ` `public` `static` `void` `Main () ` ` ` `{ ` ` ` `int` `side = 3; ` ` ` `Console.WriteLine(` `"Surface area of dodecahedron ="` ` ` `+ area_of_dodecahedron(side)); ` ` ` `} ` ` ` `} ` ` ` `// This code is contributed by vt_m. ` |

*chevron_right*

*filter_none*

## PHP

`<?php ` `// PHP program to calculate ` `// surface area of dodecahedron ` ` ` `// utility Function ` `function` `area_of_dodecahedron( ` `$side` `) ` `{ ` ` ` `return` `((3 * sqrt(25 + 10 * (sqrt(5)))) ` ` ` `* (pow(` `$side` `, 2))) ; ` `} ` ` ` `// Driver Code ` `$side` `= 3; ` ` ` `echo` `(` `"Surface area of dodecahedron = "` `); ` `echo` `(area_of_dodecahedron(` `$side` `)); ` ` ` `// This code is contributed by vt_m. ` `?> ` |

*chevron_right*

*filter_none*

Output:

Surface area of dodecahedron = 185.812

## Recommended Posts:

- Calculate Volume, Curved Surface Area and Total Surface Area Of Cylinder
- Program for Surface Area of Octahedron
- Program for Volume and Surface Area of Cube
- Program for Volume and Surface Area of Cuboid
- Program to find the surface area of the square pyramid
- Program for Volume and Surface area of Frustum of Cone
- Program to calculate Volume and Surface area of Hemisphere
- Program to find volume and surface area of pentagonal prism
- Program to find Surface Area and Volume of Octagonal Prism
- Find the Surface area of a 3D figure
- Surface Area and Volume of Hexagonal Prism
- Calculate volume and surface area of a cone
- Calculate volume and surface area of Torus
- Calculate Volume and Surface area Of Sphere
- Calculate Volume of Dodecahedron
- Python Program for Program to calculate area of a Tetrahedron
- Java Program for Program to calculate area of a Tetrahedron
- Program for Area Of Square
- Program to calculate area of Enneagon
- Program to find area of a circle

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.