int yourNumber = 100;Console.WriteLine(yourNumber.ToString("D6", CultureInfo.InvariantCulture));
int yourNumber = 75;Console.WriteLine(yourNumber.ToString("D5", CultureInfo.InvariantCulture));
Login to post response