Answers for "how to store a 6 digit number as 6 separate integers"

4

how to store a 6 digit number as 6 separate integers

int number; // = some int

while (number > 0) {
    print( number % 10);
    number = number / 10;
}
Posted by: Guest on October-19-2020

Code answers related to "how to store a 6 digit number as 6 separate integers"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language