Lesson 13 of 23

2D Arrays: Matrices

11 min 30 XP

int m[3][3] হলো 3 rows ও 3 columns-এর তালিকা, m[i][j] দিয়ে ব্যবহার হয়। দুটি nested loop এটি পড়ে ও print করে।

Example: edit me and press Run

Output Loading C (first time takes a few seconds)
Press Run to see the result here.

Matrix গুণ: C[i][j] = Σ A[i][k] × B[k][j], তিনটি nested loop। জনপ্রিয় interview প্রোগ্রাম।

Challenge

+30 XP

n এবং একটি n × n matrix পড়ুন। প্রতিটি কর্ণের যোগফল print করুন। Input: 3 1 2 3 4 5 6 7 8 9 Output: Main: 15 Other: 15

Output Loading C (first time takes a few seconds)
Press Run to see the result here.