Requires knowledge of: functions

Write a function taking 5 int arguments and returning a bool.
bool are_sides_and_diagonal( int a, int b, int c, int d, int e ) ;
The five arguments are the lengths of five straight line segments.

The function should return true if it is possible to form a quadrilateral of which the sides are any four of the arguments and the remaining one argument is a diagonal. Otherwise, it should return false.

Example: With the arguments 1, 2, 3, 4, 5 no such quadrilateral can be formed. Return false.

Example: With the arguments 2, 3, 4, 5, 6 such a quadrilateral can be formed (with sides 2,3,5,6 and 4 as a diagonal). Return true.