下面程序的功能是从键盘输入一组字符 从中统计大写字母和小写字母的个数 选择 ()填入到【 】中。 us
已帮助 人
下面程序的功能是从键盘输入一组字符,从中统计大写字母和小写字母的个数,选择 ()填入到【 】中。 using System; class test { static void Main() { int m=0,n=0; char c; while ((【 】)!="n") { if (c>="A" && c<="Z") m++ ; if (c>="a" && c<="z") n++ ; } Console.WriteLine("{0},{1}", m, n); } }
A.c=Convert.ToChar(Console.Read())
B.c=Console.Read()
C.c=Console.ReadLine()
D.c=Convert.ToChar(Console.ReadLine())

回答
共1条回复-
c=getchar( )
