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

Python Examples

Introduction: Python Examples are the basic programming concepts of python like python syntax,python data types,,python operators,python if else,python comments etc.. …

Read more

C String Functions

C String Functions perform certain operations, It provides many useful string functions which can come into action. The <string.h> header …

Read more