05AB1E, 6 bytes
Code:
Code:
[Dg#à*
Uses the 05AB1E encoding. Try it online!
Explanation
[Dg# # While the length of the number is not 1
à # Extract the largest element from the current number
* # Multiply it with the leftover number
05AB1E, 6 bytes
Code:
[Dg#à*
Uses the 05AB1E encoding. Try it online!
Explanation
[Dg# # While the length of the number is not 1
à # Extract the largest element from the current number
* # Multiply it with the leftover number