《21天学通C#》数字代表的字符

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 数字和字符一一对应
{
class Program
{
static void Main(string[] args)
{
int ctr;
char ch;
Console.WriteLine("\nNumber Value\n");
for (ctr = 60; ctr <= 95; ctr = ctr + 1)
{
ch = (char)ctr;
Console.WriteLine("{0} is {1}", ctr, ch);
}
Console.WriteLine("按任意键退出");
Console.ReadKey();
}
}
}

 

 

posted on 2018-11-08 14:32  天源  阅读(166)  评论(0编辑  收藏  举报

导航