-->
当前位置:首页 > 题库

PROGRAMMING:The product of main diagonal elements and sub diagonal elements of square matrix

Luz5年前 (2021-05-10)题库339
Find a five × The sum of the main diagonal elements and the product of the sub diagonal elements of a square matrix.
###Input format:
Enter a matrix of 5 rows and 5 columns. There is no space before the first number in each row, and there is a space between each number in each row.
###Output format:
Output in the order of "s = sum, t = product" in one row, the results are output as is, without column width control.
###Input example:
```in
1 4 7 8 5
1 1 1 1 1
2 2 2 5 6
2 2 2 2 2
3 3 3 3 3
```
###Output example:
```out
s=9,t=60
```






answer:If there is no answer, please comment