Php Code for Cone

This php programming code is used to find the cone . 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 cone .

    $s = sqrt(pow($r,2) + pow($h,2));
    $v = (0.333)*3.14*pow($r,2)*$h;
    $c = 3.14 * $r * $s;
    $t = 3.14 * $r * ($s + $r);
    echo sprintf("Slant Height = %f",$s);
    echo sprintf("\nVolume of Cone = %f",$v);
    echo sprintf("\nCurved Surface Area = %f",$c);
    echo sprintf("\nTotal Surface Area = %f",$t);
Other Programming Codes
Online Calculator : Cone Calculator
Click on the select code link to copy and paste this free php program code for cone calculator.

english Calculators and Converters

Ask a Question