Advertisement
YavorGrancharov

ASCII_String

Jun 11th, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ASCII_String
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int n = int.Parse(Console.ReadLine());
  10.  
  11.             char converted = '\0';
  12.  
  13.             string concatenate = String.Empty;
  14.  
  15.             for (int i = 0; i < n; i++)
  16.             {
  17.                 int num = int.Parse(Console.ReadLine());
  18.                 converted = Convert.ToChar(num);
  19.                 concatenate += converted;
  20.             }
  21.             Console.WriteLine(concatenate);
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement