Factorial Trailing Zeros UMPIRE

Опубликовано: 13 Июнь 2026
на канале: Hugo the Juice
0

Could've explained the reason for looping better. 25 has 2 multiples of 5 and that's why we use a loop. To count multiples of 5 that have repeats of 5 in them. So 125 would be 5 * 5 * 5 which means the loop needs to go 3 times to cover this as each iteration only handles 1 of them per number. 25 would need 2 loops because of this too.