语法错误,逻辑问题,帮忙看看!
using System;namespace Test
{
class Program
{
static void Main(string[] args)
{
int guess,number=17;
do
{
Console.WriteLine("你猜测的数:");
guess=Console.Read();
if(guess > number)
Console.WriteLine("太大!");
if(guess < number)
Console.WriteLine("太小!");
}while(guess!=number);
Console.WriteLine("恭喜你,你猜中了!");
Console.ReadLine();
}
}
}
语法没有错误,只是得不到应得的结果!为什么?