using System;
class text {
static void Main() {
int a,b,c;
a=Console.ReadLine();
Console.WriteLine(a);
c = (int)a / 10;
Console.WriteLine(c);
switch (c)
{
case 10: b = 4; break;
case 9: b = 4; break;
case 8: b = 3; break;
case 7: b = 2; break;
case 6: b = 1; break;
default: b = 0; break;
}
Console.WriteLine(b);
}
}
程序在上面,运行后得到:85
56
5
0
我都搞不懂后面的都对,就是在输入后的值改了...郁闷