1 2 3 4 5 6 7 8 9 10
clc //initialisation of variables t=30//deg y=9802//N/m^3 sg=0.78 r=6*10^-2//m //CALCULATIONS P=(1/2)*y*sg*r//Pa //RESULTS printf('The pressure is=% f Pa',P)