(C++) Exercise \#0: a correct Divide function

August 7, 2019 · View on GitHub

 

 

 

 

 

(C++) Exercise #0: a correct Divide function

 

Difficulty: 3/10

Date added: 9th of June 2008

 

In this exercise, write a safe and correct Divide function, that divides two doubles. For example, if this function would be called with 3.0 as a numerator and 4.0 as denominator, it should return 0.75.

 

  • View the answer of this exercise.