Q9 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 here
Program: 67
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:
Output:
Enter the co-ordinate of first place: 29.3787077 78.1042091
Enter the co-ordinate of second place: 29.6070158 78.3266826
The distance between two place in kilometer: 31.88
The distance between two place in nautical miles: 17.21