Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Test
- {
- using System;
- using System.Text;
- public class StartUp
- {
- public static void Main()
- {
- StringBuilder sb = new StringBuilder();
- for (int i = 0; i < 4; i++)
- {
- string num = Console.ReadLine();
- switch (num.Length)
- {
- case 1:
- sb.Append("000" + num + " ");
- break;
- case 2:
- sb.Append("00" + num + " ");
- break;
- case 3:
- sb.Append("0" + num + " ");
- break;
- default:
- sb.Append(num + " ");
- break;
- }
- }
- Console.WriteLine(sb.ToString().Trim());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement