The problem says the input is a positive integer but the first test inputs 0. In my code that caused r = 0/0 error. Please change the wording to "input is non-negative".
318 Solvers
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
513 Solvers
669 Solvers
520 Solvers
Find the Oldest Person in a Room
5180 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!