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

14 lines
205 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07: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.