1 2 3 4 5 6 7 8 9 10 11
clear //Given ug=1.5 uw=1.3 vw=2.25*10**8 //Calculation vg=(uw*vw)/ug //Result printf("\n Speed of the light in glass is %0.3f *10**8 m/s", vg*10**-8)