//Ex:5.25
clc;
clear;
close;
R=6370;// radius of earth in km
hm=140;// height of the ionospheric layer in km
d=2*R*(acos(R/(R+hm)));// max range in a single hop transmission in km
printf("The max range in a single hop transmission = %f km", d);