clc //initialisation of variables d= 1 //ft s= 0.8 h= 2 //ft w= 62.3 //lbf/ft^3 d1= 5 //ft //CALCULATIONS F= (%pi/4)*d^2*s*w*(d/2) F1= (%pi/4)*d^2*s*w*(d1/2) //RESULTS printf (' Force= %.2f 2lbf',F) printf (' \n Force= %.f lbf',F1)