/******************************************************************************
Online C# Compiler.
Code, Compile, Run and Debug C# program online.
Write your code in this editor and press "Run" button to execute it.
*******************************************************************************/
using System;
class HelloWorld {
static void test01()
{
Console.WriteLine("tes01:");
bool b1=true;
bool b2 = false;
bool b3 = (100 ==10 );
Console.WriteLine("b1:{0}",b1);
Console.WriteLine("b2:{0}",b2);
Console.WriteLine("b3:{0}",b3);
}
static void test02()
{
Console.WriteLine("tes02:");
int a = 9;
int b = 2;
int c = 25;
//ما هي قيمة التعابير التالية؟
bool b1 = (b == c %10);
bool b2 =(b >10) ||( b == 5);
bool b3 =(c > 1) && (c < 100);
bool b4 = !(a ==b );
bool b5 = (c / 10) == (c % 10);
Console.WriteLine("b1:{0}",b1);
Console.WriteLine("b2:{0}",b2);
Console.WriteLine("b3:{0}",b3);
Console.WriteLine("b4:{0}",b4);
Console.WriteLine("b5:{0}",b5);
}
static void test03()
{
Console.WriteLine("test03:");
Console.Write("Please enter a n1: ");
int n1 = int.Parse(Console.ReadLine());
Console.Write("Please enter a n2: ");
int n2 = int.Parse(Console.ReadLine());
bool b3 = (n1 > n2);
Console.WriteLine("b3:{0}",b3);
}
static void Main() {
test01();
test02();
test03();
}
}