7# Finding maximum Edge of Triangle | Scratch Coding Practices & challenging Tasks

Опубликовано: 30 Июль 2022
на канале: Block Programming
873
8

Maximum Edge of a Triangle
Create a Code that finds the maximum range of a triangle's third edge, where the side lengths are all integers.

Examples
nextEdge(8, 10) ➞ 17
nextEdge(5, 7) ➞ 11
nextEdge(9, 2) ➞ 10
Notes
(side1 + side2) - 1 = maximum range of third edge.
The side lengths of the triangle are positive integers.