clc //initialisation of variables clear d= 0.366 //ft i= 12 //CALCULATIONS pd= d*i //RESULTS printf ('Required pipe diameter = %.2f in',pd)