1 2 3 4 5 6 7 8 9
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)