Before writing the program of calculating the area of an icosahedron in different programming languages, firstly we have to know about what is icosahedron and its area's formula.
What is Icosahedron?
Icosahedron is a regular convex polyhedron shape. This shape contains 30 sides, 12 vertices, and 20 identical equilateral triangles.
Area of Icosahedron
Area of Icosahedron = 5 * √3 * a * a
Where, a is the side of an icosahedron.
Program of calculating the area of an icosahedron in different Programming languages
Program 1: Write a Program in C language:
Output of Above C program:
Program 2: Write a Program in Java language:
Output of Above Java program:
Program 3: Write a Program in PHP programming language.
Output of Above PHP program:
Program 4: Write a Program in Python programming language.
Output of Above Python program: