Write a method multiply() that takes two square matrices of the same
dimensionasarguments andproduces their product(another square matrix ofthat
samedimension). Extra credit: Make your program work wheneverthe 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 re
turns true if allof the entries in the arrayaretrue, and fal se otherwise.
Comments
Leave a comment