Advertisement
skipter

From Int to ASCII C#

Jun 15th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. using System;
  2. using System.Globalization;
  3. class PriceChangeAlert
  4. {
  5.     static void Main()
  6.     {
  7.         int numberLines = int.Parse(Console.ReadLine());
  8.  
  9.         string finalText = string.Empty;
  10.  
  11.         for (int i = 0; i < numberLines; i++)
  12.         {
  13.             int asciiNumber = int.Parse(Console.ReadLine());
  14.             char letter = Convert.ToChar(asciiNumber);
  15.             finalText += letter;
  16.         }
  17.         Console.WriteLine(finalText);
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement