blob: 40e274eec10a3e2bb4cf4e5ff9f2cc19ebfe6695 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc; funcprot(0);
//Example 17.2 Time to Climb Formula
//Variable Initialisation
h1 = 8000;
h2 = 13600;
//Calculation
H = h1^2/(2*h1-h2);
//Results
disp(H,"Ceiling (ft) : ");
|