how to take the first digit of a line c sharp code example
Example 1: 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;
}
Example 2: on in get first two digit start with two numbers c#
12,552,893 ticks