//Example 1_20 clc(); clear; //To calculate the refractive index of the liquid D10=1.40 //units in cm d10=1.27 //units in cm u=D10^2/d10^2 printf("Refractive index of the liquid is %.3f",u)