Write a method multiply() that takes two square matrices of the same dimension as arguments and produces their product(another square matrix ofthat samedimension). Extra credit: Make your program work whenever the number of rows in the first matrix is equalto the number of columns in the second matrix.
Write a method any() that takes an arrayof bool ean values as argument and returns true if any of the entries in the array is true, and fal se otherwise.
Write a method all() that takes an array of bool ean values as argument and returns true if allof the entries in the array are true, and fal se otherwise.