Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

on in get first two digit start with two numbers c#

public static int GetFirstDigitLoop(int number)
{
    while (number >= 10)
    {
        number = (number - (number % 10)) / 10;
    }
    return number;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #digit #start #numbers
ADD COMMENT
Topic
Name
7+4 =