Write a C program to calculate distance between two places on the earth in nautical miles.

preview_player
Показать описание
Write a program to receive values of latitude and longitude, in degrees, of two places on the earth and outputs the distance between then in nautical miles. The formula for distance in nautical miles is:
D = 3963 cos-1(cos(L2-L1) * cos(G2-G1))
Source Code:
Рекомендации по теме