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

PROGRAMMING:Two dimensional array to find the sum of left lower triangular elements

Luz5年前 (2021-05-10)题库427
Find the sum of the elements of the lower left triangle (including the main diagonal) of an n * n (n < 10) array.
###Input format:
First enter n (n < 10) values, and then enter the values of each array element.
```
###Input example:
two
1 2
3.4 [Enter]
```
###Output format:
Output the sum of all elements of the lower left triangle (including the main diagonal).
```
###Output example:
eight
```






answer:If there is no answer, please comment