19 Kasım 2009 Perşembe

C# || İlişkisel Operatörü

using System;

namespace Ornek
{
class Program
{
static void Main()
{
bool a, b;

a = true;
b = true;
Console.WriteLine("{0} || {1} = {2}",a,b,a || b );

a = true;
b = false;
Console.WriteLine("{0} || {1} = {2}", a, b, a || b);

a = false;
b = true;
Console.WriteLine("{0} || {1} = {2}", a, b, a || b);

a = false;
b = false;
Console.WriteLine("{0} || {1} = {2}", a, b, a || b);

}
}
}

// || ilişkisel operatörü

Hiç yorum yok:

Yorum Gönder