check if number has a 3 digit code example
Example: validate int have 3 digits c#
int X = 9;
string PaddedResult = X.ToString().PadLeft (3, '0'); // results in 009
int X = 9;
string PaddedResult = X.ToString().PadLeft (3, '0'); // results in 009