char s[32] = "";
sprintf(s, "Our sun has %i planets", x);
s = std::format("Our sun has {} planets", x);
var s = $"Our sun has {x} planets";
var s = "Our sun has $x planets";
s = "Our sun has #{x} planets"
write (unit=s,fmt='(*(G0))') "Our sun has ",x," planets."
s := fmt.Sprintf("Our sun has %d planets", x)
let s = `Our sun has ${x} planets`;
String f = "Our sun has {0,number} planets",
s = format(f, x);
Formatter f = new Formatter();
f.format("Our sun has %s planets", x);
f.flush();
String s = f.toString();
String s = "Our sun has %s planets".formatted(x);
String s = String.format("Our sun has %s planets", x);
val s = "Our sun has $x planets"
local str=string.format("Our sun has %d planets",x)
$s = "Our sun has {$x} planets";
s := Format('Our sun has %d planets',[x]);
s := 'Our sun has '+x.ToString+' planets';
s := 'Our sun has '+IntToStr(x)+' planets';
$s = "Our sun has $x planets"
s = 'Our sun has {} planets'.format(x)
s = 'Our sun has %s planets' % x
s = f'Our sun has {x} planets'
s = "Our sun has #{x} planets."
let s = format!("Our sun has {x} planets");
let s = format!("Our sun has {} planets", x);