View Problem

Define a string containing variables and expressions

Given variables a=3 and b=4 output "3+4=7"
ExpandDiskEdit
fsharp
let a, b = 3, 4
let mystr = sprintf "%d+%d=%d" a b (a+b)
printfn "%s" mystr
ExpandDiskEdit
fantom
echo("$a+$b=${a+b}")

Submit a new solution for fsharp or fantom
There are 28 other solutions in additional languages (clojure, cpp, csharp, erlang ...)