Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(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.

 

 

 

 

 

 

Post your feedback

 

Feel free to post your feedback about this exercise at Programmer's Heaven.

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict