Swift - Write program to Declare variables

Requirements

Write program to Declare variables to store

  • a user's gender,
  • weight,
  • height, and
  • date of birth.

Hint

Use var


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

Related Exercise