1 2 3 4 5 6 7 8 9
clc clear //Initialization of variables P=20 //psi gam=62.4 //lb per cu ft //calculations h=P*144/gam //results printf("height = %.1f ft",h)