Php Code for Conical Frustum

This php programming code is used to find the conical frustum . You can select the whole php code by clicking the select option and can use it. When you click text, the code will be changed to text format. This php program code will be opened in a new pop up window once you click pop-up from the right corner. You can just copy, paste this php code and use it to find the conical frustum .

<?php 
    $r1=10; $r2=12; $h=5;
    $v=(1/3 )* 3.14* $h*(pow($r1,2)+pow($r2,2)+($r1*$r2));
    $s =sqrt(pow(($r1-$r2),2)+pow($h,2)) ;
    $l=3.14*($r1+$r2)*$s;
    $top=3.14*pow($r1,2);
    $b=3.14*pow($r2,2);
    $t=3.14*(pow($r1,2)+pow($r2,2)+($r1+$r2)*$s);
    echo sprintf("Volume = %f",$v);
    echo sprintf("\nSlant Height = %f",$s);
    echo sprintf("\nLateral Surface Area = %f",$l);
    echo sprintf("\Top Surface Area = %f",$top);
    echo sprintf("\nBase Surface Area = %f",$b);
    echo sprintf("\nTotal Surface Area = %f",$t);
?>
Other Programming Codes
Online Calculator : Conical Frustum Calculator
Click on the select code link to copy and paste this free php program code for conical frustum calculator.

english Calculators and Converters

Ask a Question


Sitemap