using System;
//CheckEquality(1, true) ➞ false
// A number and a boolean: the value and type are different.
//CheckEquality(0, "0") ➞ false
// A number and a string: the type is different.
//CheckEquality(1, 1) ➞ true
// A number and a number: the type and value are equal.
public class Program
{
public static void Main()
Console.WriteLine("Hello World");
CheckEquality(0, "0");
}
public static bool CheckEquality(object a, object b)
bool type = false;
if(a.GetType().Equals(b))
type = true;
if(a.Equals(b))
return true;
return false;