program MaxLengthString;
varstr: String[80];
function Length(str: String): Integer;beginLength := Length(str);end;
beginstr := 'This is a string with maximum length of 80 characters';writeln('Current length of string: ', Length(str));end.
program MaxLengthString;
var
str: String[80];
function Length(str: String): Integer;
begin
Length := Length(str);
end;
begin
str := 'This is a string with maximum length of 80 characters';
writeln('Current length of string: ', Length(str));
end.