Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
13
Task/Substring/PascalABC.NET/substring.pas
Normal file
13
Task/Substring/PascalABC.NET/substring.pas
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{$zerobasedstrings}
|
||||
const
|
||||
n = 3;
|
||||
m = 2;
|
||||
|
||||
begin
|
||||
var s := '0123456789';
|
||||
Writeln(s.Substring(n, m));
|
||||
Writeln(s[n:]);
|
||||
Writeln(s[:^1]);
|
||||
Writeln(s.Substring(s.IndexOf('3'), m));
|
||||
Writeln(s.Substring(s.IndexOf('456'), m));
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue