07-25-2023, 09:41 AM
program StringManipulationExample;
begin
// Variable declaration
var
name: String := 'John Doe';
length: Integer;
// Get the length of the string
length := Length(name);
WriteLn('Name:', name);
WriteLn('Length of name:', length);
end.
begin
// Variable declaration
var
name: String := 'John Doe';
length: Integer;
// Get the length of the string
length := Length(name);
WriteLn('Name:', name);
WriteLn('Length of name:', length);
end.
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos