Search This Blog

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

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 :

1 comment: