Aborigenius

ASCII String

Jun 7th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ASCII_String
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int n = int.Parse(Console.ReadLine());
  14.             string word = "";
  15.             for (int i = 0; i < n; i++)
  16.             {
  17.                 int ascii = int.Parse(Console.ReadLine());
  18.                 char test = Convert.ToChar(ascii);
  19.  
  20.                 char[] chars = {test};
  21.                 word += new string(chars);
  22.             }
  23.             Console.WriteLine(word);
  24.         }
  25.     }
  26. }
Add Comment
Please, Sign In to add comment