Program for Surface Area of Octahedron | CPP Program to calculate surface area of Octahedron ; utility Function ; Driver Function
#include <bits/stdc++.h> NEW_LINE using namespace std ; double surface_area_octahedron ( double side ) { return ( 2 * ( sqrt ( 3 ) ) * ( side * side ) ) ; } int main ( ) { double side = 7 ; cout << " Surface ▁ area ▁ of ▁ octahedron ▁ = " << surface_area_octahedron ( side ) << endl ; }