Tech Study

How to print ascii value in c#

Introduction:

print ascii value in c#

C# Program to Print ASCII Value. This program is compiled and tested on a Visual Studio 2012..

using System;

namespace TechStudyCSharp
{
    class Program
    {
        static void Main(string[] args)
        {
            char c;            
            Console.WriteLine("Enter a character: ");
            c = Convert.ToChar( Console.ReadLine());            
            Console.WriteLine("\nASCII Value of " +c+" "+  Convert.ToInt32(c));          
            Console.ReadKey();
        }
    }
}

Result

C# Program to Print ASCII Value
print ascii value in c#

To learn more about c# viste these links :

Write C# program to print multiplication table of a given number

TaggedC++ Program to Print ASCII Value

Java Final keyword

Introduction : java final keyword The final keyword present in Java programming language is generally used for restricting the user. …

Read more

C++ Memory Management: new and delete

C++ Memory Management We know that arrays store contiguous and the same type of memory blocks, so memory is allocated …

Read more