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

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