- C Programming Tutorial
- C - Home
- C - Overview
- C - Environment Setup
- C - Program Structure
- C - Basic Syntax
- C - Data Types
- C - Variables
- C - Constants
- C - Storage Classes
- C - Operators
- C - Decision Making
- C - Loops
- C - Functions
- C - Scope Rules
- C - Arrays
- C - Pointers
- C - Strings
- C - Structures
- C - Unions
- C - Bit Fields
- C - Typedef
- C - Input & Output
- C - File I/O
- C - Preprocessors
- C - Header Files
- C - Type Casting
- C - Error Handling
- C - Recursion
- C - Variable Arguments
- C - Memory Management
- C - Command Line Arguments
- C Programming useful Resources
- C - Questions & Answers
- C - Quick Guide
- C - Useful Resources
- C - Discussion

# 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)a^{2}

## 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

"); printf("The side of Tetrahedron is %d

", a); area = (sqrt(3)*(a * a)); printf("The area of Tetrahedron is %f

", 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 Articles
- 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
- Golang program to calculate the area of a cube
- Program to calculate area of Enneagon
- Program to calculate Area Of Octagon
- Program to calculate the Surface Area of a Triangular Prism
- Swift Program to calculate the area of Cube
- Haskell Program to calculate the area of Cube
- Swift Program to Calculate the Area of Enneagon
- Python Program to calculate the area of Cube
- Swift Program to calculate the area of the rhombus
- Python Program to calculate the area of the rhombus
- Haskell Program to calculate the area of the rhombus
- Swift Program to Calculate Area of Octagon

Advertisements