1 2 3 4 5 6 7 8 9 10 11
clear //Given b2=0.4 b1=0.6 l1=5000 //Calculation l2=(b2*2*l1)/b1 //Result printf("\n Wavelength of the light is %0.0f A",l2)