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

PROGRAMMING:Two dimensional array element change

Luz5年前 (2021-05-10)题库385
A two-dimensional array a [3] [3] = {1,2,3,4,5,6,7,8,9} is output after the following processing. Change the elements on the main diagonal to their squares, the elements in the lower left triangle to multiply themselves by 2, and the elements in the upper right triangle to multiply themselves by 3.
###Output format:
Output the changed matrix with 3 rows and 3 columns, and each data occupies 3 columns.
###Output example:
```out
1 5 6
8 25 9
14 16 81
```






answer:If there is no answer, please comment