Dada la arista del dodecaedro, calcule su área superficial. El área de superficie es la cantidad de espacio que ocupan todas las caras de la forma.
Fórmula:
Ejemplos:
Input : 3 Output : 185.812 Input : 7 Output : 1011.64
Un dodecaedro es una figura tridimensional formada por 12 caras o lados planos. Todas las caras son pentágonos del mismo tamaño. La palabra ‘dodecaedro’ proviene de las palabras griegas dodeca (‘doce’) y edro (‘caras’). Cada forma tiene propiedades y características. También lo ha hecho el dodecaedro
- 12 caras pentagonales iguales
- 20 vértices
- 30 bordes
donde el pentágono es una forma bidimensional con 5 lados rectos y 5 vértices. Entonces, un dodecaedro tiene 12 de estas caras pentagonales planas e iguales. Entonces, uno puede pensar en el dodecaedro como un dado de 12 caras (generalmente no se ve), pero puede estar en un juego de mesa Battleball.
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; }
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.
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.
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.
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. ?>
Javascript
<script> // Javascript program to calculate // surface area of dodecahedron // utility Function function area_of_dodecahedron( side) { return ((3 * Math.sqrt(25 + 10 * (Math.sqrt(5)))) * (Math.pow(side, 2))) ; } // Driver Code let side = 3; document.write("Surface area of dodecahedron = " + Math.round(area_of_dodecahedron(side)*1000)/1000); </script>
Producción:
Surface area of dodecahedron = 185.812