- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Program for Surface Area of Octahedron in C++
What is Octahedron?
The word ‘dodecahedron’ is derived from the Greek words where, Octa means ‘Eight’ and hedron specifies ‘faces’. octahedron in geometric is a 3-D platonic or regular solid with eight faces. Like, other figures octahedrons also have properties and that are −
- 6 polyhedron vertices
- 12 polyhedron edges
- 8 equilateral faces
Given below is the figure of octahedron
Problem
Given with the sides, the program must find the surface area of octahedron where surface area is the total space occupied by the faces of the given figure.
To calculate surface area of octahedron there is a formula −
Where, a is side of an Octahedron
Example
Input-: side=5 Output-: 86.6025
Algorithm
Start Step 1 -> declare function to find area of octahedron double surface_area(double side) return (2*(sqrt(3))*(side*side)) Step 2 -> In main() Declare variable double side=5 Print surface_area(side) Stop
Example
#include <bits/stdc++.h> using namespace std; //function for surface area of octahedron double surface_area(double side){ return (2*(sqrt(3))*(side*side)); } int main(){ double side = 5; cout << "Surface area of octahedron is : " << surface_area(side); }
Output
Surface area of octahedron is : 86.6025
- Related Articles
- Program for Surface area of Dodecahedron 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++
- Program for Area Of Square in C++
- Write the formula for the curved surface area and total surface area of the frustum of a cone.
- C Program for Area And Perimeter Of Rectangle
- Surface Area and Volume of Hexagonal Prism in C programming
- 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
- C Program for Program to find the area of a circle?
- 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
- Find the ratio of the total surface area and lateral surface area of a cube.

Advertisements