编辑器提示错误“!无法应用于int类型”
namespace _02
{
class Program
{
static void Main(string[] args)
{
int x = 1;
int y = 2;
Console.WriteLine(!x > y);
}
}
}
namespace _02
{
class Program
{
static void Main(string[] args)
{
int x = 1;
int y = 2;
Console.WriteLine(!x > y);
}
}
}
string[] names = {"关羽","张飞","赵云","马超","黄忠"};
//请在这里完善代码
for(int i = 0;i<names.Length;i++){
Console.Write(names[i]+",");
}
//请在这里完善代码
for(int i = 0;i<names.Length;i++){
Console.Write(names[i]+",");
}