Skip to content
本站總訪問量
本站訪客數 人次

TQC+ 程式語言Python 608 最大最小值索引

題目說明:請撰寫一程式,讓使用者建立一個3*3的矩陣,其內容為從鍵盤輸入的整數(不重複),接著輸出矩陣最大值與最小值的索引。

範例輸入

shell
6
4
8
39
12
3
-3
49
33

範例輸出

Index of the largest number 49 is: (2, 1)
Index of the smallest number -3 is: (2, 0)

Contributors

The avatar of contributor named as lucashsu95 lucashsu95

Changelog