Flowchart (ISO 5807)
Source code
Java
class Matrix {
static void multiply(int[][] a, int[][] b, int[][] c, int n) {
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
c[i][j] = 0;
for (int k = 0; k < n; k++) {
c[i][j] = c[i][j] + a[i][k] * b[k][j];
}
}
}
}
}The editor opens with this code — change it and the chart redraws.
- Language
- Java
- Constructs
- nested loops
- Topic
- Loops
- Formats
- Word, Visio, draw.io, PDF, SVG