1 2 3 4 5 6 7 8 9 10 11 12
clear //Given R=6.4*10**6 //m hr=50 //m ht=32 //m //Calculation // d=sqrt(2*R*ht)+sqrt(2*R*hr) //Result printf("\n Maximum distance is %0.1f Km",d*10**-3)