Advertisement
nggialac99

Cau 2: Xoay mang

Feb 26th, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.24 KB | None | 0 0
  1. fun arrEdit() {
  2.     val diem = arrayOf(intArrayOf(1, 2, 3), intArrayOf(4, 5, 6), intArrayOf(7, 8, 9))
  3.     for (i in 0..2) {
  4.         for (j in 2 downTo 0) {
  5.             print(diem[j][i].toString() + "  ")
  6.         }
  7.         print("\n")
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement