Skip to navigation

Question:
How to shorten if else in ruby

The sum of the parts if greater than the whole.