
- C++ Basics
- C++ Home
- C++ Overview
- C++ Environment Setup
- C++ Basic Syntax
- C++ Comments
- C++ Data Types
- C++ Variable Types
- C++ Variable Scope
- C++ Constants/Literals
- C++ Modifier Types
- C++ Storage Classes
- C++ Operators
- C++ Loop Types
- C++ Decision Making
- C++ Functions
- C++ Numbers
- C++ Arrays
- C++ Strings
- C++ Pointers
- C++ References
- C++ Date & Time
- C++ Basic Input/Output
- C++ Data Structures
- C++ Object Oriented
- C++ Classes & Objects
- C++ Inheritance
- C++ Overloading
- C++ Polymorphism
- C++ Abstraction
- C++ Encapsulation
- C++ Interfaces
Program for Surface area of Dodecahedron in C++
What is Dodecahedron?
The word ‘dodecahedron’ is derived from the Greek words where, dodeca means ‘twelve’ and hedron specifies ‘faces’. Dodecahedron in geometric is a 3-D platonic or regular solid with twelve flat faces. Like, other figures dodecahedron also have properties and those are −
- 20 polyhedron vertices
- 30 polyhedron edges
- 12 pentagonal faces, as a pentagon is a five-sided polygon
Given below is the figure of dodecahedron
Problem
Given with an edge, the program must find the surface area of dodecahedron where surface area is the total space occupied by the faces of the given figure.
To calculate surface area of dodecahedron there is a formula −
Example
Input-: side=5 Output-: 516.143
ALGORITHM
Start Step 1 -> declare function to find area of dodecahedron double area(int side) return ((3 * sqrt(25 + 10 * (sqrt(5)))) * (pow(side, 2))) Step 2 -> In main() Declare variable int side=5 Print area(side) Stop
CODE
#include <bits/stdc++.h> using namespace std; //function to find area of dodecahedron double area(int side){ return ((3 * sqrt(25 + 10 * (sqrt(5)))) * (pow(side, 2))) ; } int main(){ int side = 5; cout<< "Surface area of dodecahedron is : " << area(side); return 0; }
Output
Surface area of dodecahedron is : 516.143
- Related Articles
- Program for Surface Area of Octahedron in C++
- Program for Volume and Surface Area of Cube in C++
- Program for Volume and Surface Area of Cuboid in C++
- Program for Volume and Surface area of Frustum of Cone in C++
- Write the formula for the curved surface area and total surface area of the frustum of a cone.
- Java Program to Find the Surface area and Volume of Cuboid
- Swift Program to Find the Surface area and Volume of Cuboid
- Haskell Program to Find the Surface area and Volume of Cuboid
- Kotlin Program to Find the Surface Area and Volume of Cuboid
- How To Find Volume of Dodecahedron in Java?
- Find the ratio of the total surface area and lateral surface area of a cube.
- Surface Area of 3D Shapes in Python
- Program for Area Of Square in C++
- Find the lateral surface area and total surface area of a cube of edge $10\ cm$.
- The evaporation of water increases under the following conditions :(a) increase in temperature, decrease in surface area(b) increase in surface area, decrease in temperature(c) increase in surface area, rise in temperature(d) increase in temperature, increase in surface area, addition of common salt

Advertisements