Define a recursive Scheme function sumdiag that computes the sum of the elements on the secondary diagonal of a matrix.
Programming Languages solve step by step Define a recursive Scheme function sumdiag that computes the sum of the elements on the secondary diagonal of a matrix.The matrix is given as a list of lists, where each row is represented as a sublist. Example: evaluates to 15 (3+5+7). The recursive call in the definition of sumdiag […]