[insert_php]

$result=0;

$speedofflow=0;

$speedofsound=0;

$error=”Calculate Values”;

if(isset($_POST[“submit”]))

{

$speedofflow=$_POST[“speedofflow”];

$speedofsound=$_POST[“speedofsound”];

if($speedofsound==0)

{

$error=”Division By zero Error …! speed of sound = “.$speedofsound;

}

else if($speedofflow==0)

{

$error=”Division By zero Error …! speed of flow = “.$speedofflow;

}

else

{

$result=$speedofflow/$speedofsound;

}

}

[/insert_php]

**Topic Covered:**

Mach Number of Isentropic Flow example, formula and calculations

List of All Examples of Fluid Mechanics : Click Here .

Latest posts by Prof. Fazal Rehman Shamil (see all)

- List of Public service commissions - August 31, 2020
- Comparison of fee structure of Pakistani Universities - June 1, 2020
- Past Guess Paper of Auditing - May 12, 2020