Flowchart (ISO 5807)
Source code
Pascal
function caesar(s: string; k: integer): string;
var i: integer;
r: string;
begin
r := '';
for i := 1 to length(s) do
r := r + chr(ord(s[i]) + k);
caesar := r;
end;The editor opens with this code — change it and the chart redraws.
- Language
- Pascal
- Constructs
- character shift
- Topic
- Algorithms
- Formats
- Word, Visio, draw.io, PDF, SVG