Write a Program to find the Volume of a Hexagonal PrismBefore writing the program of calculating the Volume of a hexagonal prism in different programming languages, firstly we have to know about the hexagonal prism and its volume's formula. What is Hexagonal Prism?Hexagonal Prism is a 3-D shape, which has 8 faces, 12 vertices, and 18 edges. Area of Hexagonal PrismProgram of calculating the Volume of a hexagonal prism in different Programming languagesProgram 1: Write a Program in C language: Output of Above C program: Volume of the hexagonal prism is: 489.458771 Program 2: Write a Program in Java language: Output of Above Java program: The Volume of a hexagonal prism is: 10392.304845413264 Program 3: Write a Program in PHP programming language. Output of Above PHP program: 166.27687752661 Program 4: Write a Program in Python programming language. Output of Above Python program: 420.8883462392372 |
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