Ask Question

Write a C program to calculate the distance, in feet, of a trip that is 2.36 miles long. One mile is equal to 5,280 feet.

+1
Answers (1)
  1. 23 December, 20:42
    0
    12460.799805 feet.

    Explanation:

    #include / /include the libraries

    int main ()

    { float d, conv, dml; / /define the variables

    d=2.36; / / set the distance value

    conv=5280; / /set the convertion factor

    dml=d*conv; / / (result) here, we are multiplying the distance and the factor

    printf ("%f", dml); / /print the result as a float variable.

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a C program to calculate the distance, in feet, of a trip that is 2.36 miles long. One mile is equal to 5,280 feet. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers