Increment a numerical string

fn main() {
    let n1 = "123";
    let n2 = "{atoi(n1) + 1}";
    println "{n1} + 1 = {n2}";
}

Output:

123 + 1 = 124

Attribution: This is a community solution for the Rosetta Code task Increment a numerical string in Zen C.

This article uses material from the Rosetta Code article Increment a numerical string, which is released under the GNU Free Documentation License 1.3. A list of the original authors can be found in the page history.