- Exercise

In this lesson, you will use assertations to ensure that the algorithm only accepts natural numbers.

We'll cover the following

Task

Ensure that the algorithm gcd only accepts natural numbers. Test your algorithm.

Get hands-on with 1400+ tech skills courses.