Write a program to receive values of latitude(L1, L2) and longitude(G1, G2), in degrees, of two places on the earth and output the distance (D) between them in nautical miles. The formula for distance in nautical miles is: D = 3963 cos^-1( sin L1 sin L1 + cos L1 cos L1 * cos( G2- G1))Continue reading “Calculation of finding distance between two place in nautical miles : C Program”
Category Archives: Programming
Finding Sum of the digits a 5-digit number entered by user
We are going to find the solution of the given problem in C language syntax :- In this solution we will use Modulus Operator(%) which returns the remainder after dividing the number. Algorithm of the Solution 1. Ask for the user to input the 5-digit number. 2. Declare variables for the number , all itsContinue reading “Finding Sum of the digits a 5-digit number entered by user”
