Home>

For example, the number 123456789 is given, it is necessary to divide it into individual numbers, 1, 2, 3, 4, 5, 6, 7, 8, 9 so that they can then be assigned to some variable. And what is the name of this process itself, in order to read about this function in more detail later.

On Python: Digits= Map (int, str (n)) or digits= lambda n, result= []: digits (n //10, [n% 10] + result) IF N ELSE Result O [0] See How to decompose a two-digit number into two unambiguous

jfs2021-05-04 01:14:13
c++