Multiply a Row

Write a function prod_row(i, m) that receives the index i of one row of
a matrix of int’s m and returns the product of all the integers in that
row. The matrix of int’s is represented as a tuple of rows, each row
being, in turn, a tuple of int’s. If m has n rows, we are guaranteed
that 0 ≤ i < n.

Observation

Observe that 0 ≤ i < n implies that the tuple m is nonempty, but nothing
else.

Problem information

Author: José Luis Balcázar

Generation: 2026-01-25T15:23:23.395Z

© Jutge.org, 2006–2026.
https://jutge.org
