int price = 100; int amount = 1000 if (price.Equals(amount)) { Console.WriteLine("Price is equal to amount"); } else { Console.WriteLine("Price is not equal to amount"); } //csharp/6456