11 Temmuz 2011 Pazartesi

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

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);

 }
 }
 }

0 yorum:

Yorum Gönder