Swift - Write program to using string interpolation

Requirements

Given the following variables,


var lat = 40.765819
var lng = -73.975866

write the statement to output the following:

Lat/Lng is (40.765819, -73.975866)

Hint

You can use the string interpolation method to include Double values in your output:

Demo

var lat = 40.765819
var lng = -73.975866
print("Lat/Lng is (\(lat), \(lng))")

Result

Related Exercise