

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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 to calculate the area of a Tetrahedron
A tetrahedron is a pyramid with triangular base i.e. it has a base that is a triangle and each side has a triangle. All the three triangles converge to a point. As in the figure,
Area of Tetrahedron = (√3)a2
Example
The code to find the area of tetrahedron uses the math library to find the square and square-root of a number using sqrt and pow methods. For calculating the area we take a floating point and the value of the expression "((sqrt(3)*a*a))" is given to it.
#include <stdio.h> #include <math.h> int main() { int a= 5; float area, volume; printf("Program to find area and volume of Tetrahedron\n"); printf("The side of Tetrahedron is %d \n", a); area = (sqrt(3)*(a * a)); printf("The area of Tetrahedron is %f \n", area); return 0; }
Output
Program to find area and volume of Tetrahedron The side of Tetrahedron is 5 The area of Tetrahedron is 43.301270
- Related Questions & Answers
- Python Program to calculate the area of a Tetrahedron
- Java Program to calculate area of a Tetrahedron
- Program to calculate area and volume of a Tetrahedron
- Program to calculate area of Enneagon
- Program to calculate Area Of Octagon
- Program to calculate area and perimeter of Trapezium
- Program to calculate the area of an Circle inscribed in a Square
- Program to calculate area and perimeter of equilateral triangle
- Program to calculate area of Circumcircle of an Equilateral Triangle
- How to Calculate the Area of a Triangle using Python?
- Java Program to calculate the area of a triangle using Heron's Formula
- Program to calculate area and perimeter of equilateral triangle in C++
- Program to calculate area of Circumcircle of an Equilateral Triangle in C++
- Program to calculate the area between two Concentric Circles in C++?
- How to calculate the area and perimeter of a circle in JavaScript?
Advertisements