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;
<code>
...
import std.stdio, std.conv, std.string;
auto n = format(toInt("12345") + 1);

auto n = format(toInt("12345") + 1);
</code>


=={{header|E}}==
=={{header|E}}==