Increment a numerical string: Difference between revisions

Content added Content deleted
Line 111: Line 111:


=={{header|D}}==
=={{header|D}}==
import std.stdio, std.conv, std.string;
import std.conv, std.string;
...
...
auto n = format(toInt("12345") + 1);
auto n = format(toInt("12345") + 1);