Ask Question
19 September, 05:45

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.

+2
Answers (1)
  1. 19 September, 07:05
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers