Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

extracting digits from a number in c++

while (number > 0)
{
    int digit = number%10;
    number /= 10;
    //print digit
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #extracting #digits #number
ADD COMMENT
Topic
Name
3+5 =