Check out example codes for "validate int have 3 digits c#". It will help you in understanding the concepts better.

Code Example 1

int X = 9;

string PaddedResult = X.ToString().PadLeft (3, '0'); // results in 009

Learn ReactJs, React Native from akashmittal.com