Follow the algorithm.

Start with the number $40$40.

If the number is even, halve it. If the number is odd, subtract one and halve it.

Easy

Approx a minute

Follow the algorithm.

Follow the algorithm.

Follow the algorithm.

Sign up to access Practice Questions

Get full access to our content with a Mathspace account

Design algorithms involving branching and iteration to solve specific classes of mathematical problems