c#學習----邏輯判斷

paoPaoLong_liu發表於2024-04-17
Console.WriteLine("a" != "a");
Console.WriteLine("a" != "A");
Console.WriteLine(1 != 2);

string myValue = "a";
Console.WriteLine(myValue != "a");s 

輸出:

False
True
True
False

Console.WriteLine(1 > 2);
Console.WriteLine(1 < 2);
Console.WriteLine(1 >= 1);
Console.WriteLine(1 <= 1);

輸出:

False
True
True True

相關文章