1 2 3 4 5 6 7 8 9
clc //initialisation of variables clear d= 0.366 //ft i= 12 //CALCULATIONS pd= d*i //RESULTS printf ('Required pipe diameter = %.2f in',pd)