The following program adds two matrices together:
for(i = 0; i < m; ++i) { for(j = 0; j < n; ++j) { c[i][j] = a[i][j] + b[i][j]; } }