Flowchart (ISO 5807)
Source code
Pascal
program MaxElem;
var a: array[1..10, 1..10] of integer;
i, j, n, m: integer;
begin
readln(n);
m := a[1][1];
for i := 1 to n do
for j := 1 to n do
if a[i][j] > m then
m := a[i][j];
writeln(m);
end.The editor opens with this code — change it and the chart redraws.
- Language
- Pascal
- Constructs
- nested loops
- Topic
- Loops
- Formats
- Word, Visio, draw.io, PDF, SVG