Track PHP
PHP track

Collatz Conjecture

An exercise from the PHP track
easy

About this exercise

Calculate the number of steps to reach 1 using the Collatz conjecture

algorithms
control flow conditionals
control flow loops
integers
math
View all solutions