You need to use String interpolation, otherwise it’s just text.
Replace c
with \(c)
to actually get the value of variable c
value.
Also f
with \(f)
for the same reason.
var conversion = "\(f) degrees Fahrenheit = \(c) degrees Celsius"
5
solved Fahrenheit to Celsius convert and printing problem [duplicate]