Advertisement
Guest User

SoftUni Programming Fundamentals #577#0

a guest
May 14th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. namespace BlankProject
  2. {
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Numerics;
  7. using System.Globalization;
  8.     class Program
  9.     {
  10.         static void Main()
  11.         {
  12.             List<string> numbers = new List<string>();
  13.  
  14.             for (int i = 0; i < 4; i++)
  15.             {
  16.                 int number = int.Parse(Console.ReadLine());
  17.            
  18.                
  19.                 numbers.Add($"{number:d4}");
  20.  
  21.             }
  22.  
  23.             var result = string.Join(" ", numbers);
  24.             Console.WriteLine(result);
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement