天天看點

C語言OJ項目參考(1044):矩陣對角線元素之和

description

求一個3×3矩陣對角線元素之和。

input

矩陣

output

主對角線 副對角線 元素和

sample input

1 2 3

1 1 1

3 2 1

sample output

3 7

參考解答:

繼續閱讀