Write a program to find the Volume of TetrahedronBefore writing the program of calculating the volume of a tetrahedron in different programming languages, firstly we have to know about what is tetrahedron and its formula. What is Tetrahedron?Tetrahedron is simply a polyhedron shape, which has 4 triangular faces, four vertices, and six edges. If the faces are all congruent equilateral triangles, then the tetrahedron is called regular. Volume of TetrahedronProgram of calculating the volume of a tetrahedron in different Programming languagesProgram 1: Write a Program in C language: Output of Above C program: Enter the side of the tetrahedron:5 Surface area of the tetrahedron is: 14.731391 Program 2: Write a Program in Java language: Output of Above Java program: The volume of a tetrahedron is:14.731391274719739 Program 3: Write a Program in PHP programming language. Output of Above PHP program: 14.73 Program 4: Write a Program in Python programming language. Output of Above Python program: 117.85113019775791 |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India