C# Program to Print ASCII Value. This program is compiled and tested on a Visual Studio 2012..
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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(); } } } |
19 March 2019 2813 Written By: Rohit Mhatre
© 2020 Tech Study. All rights reserved | Developed by Tech Study| Privacy Policy | Sitemap