clc //initialisation of variables clear r= 1.5 f= 0.025 //CALCULATIONS r1= (2/f)*(r^2-1) //RESULTS printf ('ratio L/D2 = %.f',r1)