Swift - Write program to print out variable's content

Requirements

Write statement to print out the details of the user using the variables

Hint

Use print function

Demo

var gender = "Female"
var weight = 102.5      // in pounds
var height = 1.72       // in meters
var DOB = "09/25/1970"  // mm/dd/yyyy

print("Gender: \(gender)")
print("Weight: \(weight) pounds")
print("Height: \(height) meters")
print("DOB: \(DOB)")

Result

Related Exercise