int numOne = Convert.ToInt32(Console.ReadLine()); int numTwo = Convert.ToInt32(Console.ReadLine()); int numAnswer = Convert.ToInt32(Console.ReadLine()); if (numAnswer == numOne * numTwo) { Console.WriteLine("YES"); } else { Console.WriteLine("NO"); }