PadRight
오른쪽을 채워 지정 길이로 만듭니다.
str.PadRight(totalWidth, paddingChar?)
아래 값을 입력하면 예제에 즉시 반영됩니다.
string
code
Console
WriteLine
string code = "42"; Console.WriteLine(code.PadRight(5, '0')); // "42000"