Ask Question
7 July, 14:21

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. 7 July, 14:34
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers