This website completely moved to new platform. For latest content, visit www.programmingposts.com

Search this Site

19 Feb 2013

C# PROGRAM TO PRINT ASCII CHARACTERS



C# program to print ASCII Characters :


using System;
 
namespace AsciiCharacters
{
    class Program
    {
        static void Main(string[] args)
        {
            int a = 1, i;
            for (i = 0; i < 250; i++) //prints ascii characters from 1 to 250 
                Console.Write((char)i+"\t");  
             Console.ReadKey();
            
        }
    }
}

Output :