We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Maybe some rewording on the Task would be nice. I added in some if statements to check for the higher number and substract that from the lower one to get their (positive) difference, but the task isnt't about the difference but about the result of a substraction of float 2 from float 1.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sum and Difference of Two Numbers
You are viewing a single comment's thread. Return to all comments →
Maybe some rewording on the Task would be nice. I added in some if statements to check for the higher number and substract that from the lower one to get their (positive) difference, but the task isnt't about the difference but about the result of a substraction of float 2 from float 1.