How to find ASCII value in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Aciivalue
{
class Program
{
static void Main(string[] args)
{
string s;
Console.WriteLine(" Enter the letter:- ");
s = Console.ReadLine();
foreach (char c in s)
{
Console.WriteLine((int)c);
Console.ReadLine();
}
}
}
}
output:-
Enter the letter:- AB EF
ACII value:- 65 66 32 69 70 note here 32 is for space value between AB EF