G Given a 5 by 5 matrix of all positive values, write a program to find and display the greatest product of the 2 adjacent values in the vertical direction. For example, in the matrix below the greatest product of 2 adjacent values in vertical direction is 64 which is a product of mat(1,3) and mat(2,3).

Solved
Show answers

Ask an AI advisor a question