program RemoveCharacters;
varstr: string;len: integer;
beginwrite('Enter a string: ');readln(str);
len := length(str);
writeln('Length of the string: ', len);
delete(str, 1, 1);writeln('String after deleting 1 character: ', str);
delete(str, 1, 1);writeln('String after deleting 2 characters: ', str);
delete(str, 1, 1);writeln('String after deleting 3 characters: ', str);end.
program RemoveCharacters;
var
str: string;
len: integer;
begin
write('Enter a string: ');
readln(str);
len := length(str);
writeln('Length of the string: ', len);
delete(str, 1, 1);
writeln('String after deleting 1 character: ', str);
delete(str, 1, 1);
writeln('String after deleting 2 characters: ', str);
delete(str, 1, 1);
writeln('String after deleting 3 characters: ', str);
end.