c# 언어
Console.WriteLine(">" + string.Format("{0:D10}", Convert.ToInt64(str)));
여린완자
2022. 1. 3. 14:53
using System;
class Program
{
static void Main()
{
String str = "1234";
Console.WriteLine(">" + "1234567890");
Console.WriteLine(">" + string.Format("{0:D10}", Convert.ToInt64(str)));
}
}
/*RESULT--------------------------------------
>1234567890
>0000001234
---------------------------------------------*/