RosettaCodeData/Task/Increment-a-numerical-string/Delphi/increment-a-numerical-string.delphi

14 lines
205 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
program IncrementNumericalString;
{$APPTYPE CONSOLE}
uses SysUtils;
const
STRING_VALUE = '12345';
begin
WriteLn(Format('"%s" + 1 = %d', [STRING_VALUE, StrToInt(STRING_VALUE) + 1]));
Readln;
end.