all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
17
Task/Tokenize-a-string/Pascal/tokenize-a-string.pascal
Normal file
17
Task/Tokenize-a-string/Pascal/tokenize-a-string.pascal
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
program TokenizeString;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
const
|
||||
CHelloStr = 'Hello,How,Are,You,Today';
|
||||
var
|
||||
I: Integer;
|
||||
VResult: string = '';
|
||||
begin
|
||||
for I := 1 to Length(CHelloStr) do
|
||||
if CHelloStr[I] = ',' then
|
||||
VResult += LineEnding
|
||||
else
|
||||
VResult += CHelloStr[I];
|
||||
WriteLn(VResult);
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue