// Example No.6.12. // Page No.190. //To find the lengths of the intercepts. clc;clear; a = 0.8; b = 1.2; c = 1.5; disp('Ratio of the intercepts are as follows : '); disp('I1:I2:I3 = a:b/2:c/3'); I1 = 0.8; disp('0.8:I2:I3 = a:b/2:c/3'); disp('By substituting values'); I2=(1.2/2); printf("\nI2 = %.1f A",I2); I3=(1.5/3); printf("\nI3 = %.1f A",I3); //As there are no numerical steps and hence the display statement has been typed directly.