I'm writing a program in C to calculate the distance between two latitude/longitude coordinates. the below code is that I wrote. It is not working for some reason and I'm clueless to what is wrong. Maby you can catch something that I'm missing. You have any ideas? Any help would be great. Thanks in advance!
printf("Origin Coordinates \n 1) 16, 64 \t\t Speed: 20 mph \n 2) 32, 64 (Bermuda) \t Speed: 10 mph \n\nDestination Coordinates \n 1) 26, 80 (Ft. Lauderdale) \n\n\n");
printf("Please Enter the Origin Coordinates: ");
printf("Please Enter the Destination Coordinates: ");
printf("Please Enter the Speed of Travel: ");
//Convert Coordinates From Decimal Degrees to Radians
//The Haversine Formula
printf("\n\nDistance: %f Statute Miles \nSpeed: %d mph\nTime (Days/Hours): %d/%d",d,s,days,hours);