Functions 3 – Speed

Construct a function that calculates the speed of a car if the distance and the time taken to travel the distance are given as parameters. THe distance should be in miles and the time in hours.

Scroll to Top