运算符 && 不能应用于 bool 和 int C#?
class Program
{
static void Main(string[] args)
{
Console.Write("Enter number1 : ");
Console.Write("Enter number2 : ");
Console.Write("Enter number3 : ");
int getla1 = Convert.ToInt32(Console.ReadLine());
int getla2 = Convert.ToInt32(Console.ReadLine());
int getla3 = Convert.ToInt32(Console.ReadLine());
if (getla1 && getla2 > getla3)
{
Console.WriteLine("The third number is the smallest number");
}
}
}
}