使用C# 输出字母表及相应ASCⅡ码

来源:百度知道 编辑:UC知道 时间:2024/06/21 07:19:26
使用C# 输出字母表及相应ASCⅡ码

using System;
using System.Collections.Generic;
using System.Text;

namespace printGraphics
{
class Program
{
static void Main(string[] args)
{
for (int i = 0; i < 26; i++)
{
Console.Write(65 + i);
Console.Write(" " + (char)(65 + i)+" ");
}
Console.ReadLine();
}
}
}