skipter icon

From Int to ASCII C#

skipter | PRO | 06/15/17 07:33:07 PM UTC | 0 ⭐ | 315 👁️ | Never ⏰ | []
C# |

460 B

|

None

|

0 👍

/

0 👎

using System;
using System.Globalization;
class PriceChangeAlert
{
    static void Main()
    {
        int numberLines = int.Parse(Console.ReadLine());
 
        string finalText = string.Empty;
 
        for (int i = 0; i < numberLines; i++)
        {
            int asciiNumber = int.Parse(Console.ReadLine());
            char letter = Convert.ToChar(asciiNumber);
            finalText += letter;
        }
        Console.WriteLine(finalText);
    }
}

Comments