Appending Zero's To A Number

  private string AppendZerosEnd(int input, int length)
  {
  
   return input.ToString().PadRight(length, Convert.ToChar("0"));
  
  }
  private string AppendZerosBeginning(int input, int length)
  {
  
   return input.ToString().PadLeft(length, Convert.ToChar("0"));
  
  }

 

Tip By: David McCarter