Write an algorithm that seems to make sense for dividing any whole number by a fraction

2 answers

1. Invert the fraction.
2. Multiply the fraction by the whole number.

Example:

4 / 1/2 = 4 * 2/1 = 8
4/1/2=8 because 4x2=8 and 4x2/1=8 because 4x2=8