1 2 3 4 5 6 7 8 9 10 11
clear //Given l1=0.032 l=100.0 c=3*10**8 //Calculation v=-(l1*c)/l //Result printf("\n Velocity of star is %0.3f *10**4 m/s",v*10**-4)