Flowchart (ISO 5807)
Source code
C++
bool isSymmetric(int a[][10], int n) {
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
if (a[i][j] != a[j][i]) {
return false;
}
}
}
return true;
}The editor opens with this code — change it and the chart redraws.
- Language
- C++
- Constructs
- nested loops
- Topic
- Loops
- Formats
- Word, Visio, draw.io, PDF, SVG