clc //initialisation of variables h= 20 //ft g= 120 //kg/ft^3 h1= 12 //ft w= 62.4 //kg/ft^3 //calculations H= h-(h1*w/g) //results printf ('maximu depth that can be made in clay = % 2f ft ',H)