iOS Swift Basics Swift Types Recap: Swift Types

Evarist Vatnikaj
Evarist Vatnikaj
2,846 Points

I Can not figure the Second step of the challenge out for the life of me.

I Have tried every which way put can not get the right code.

types.swift
// Enter your code below
let firstValue: Int = 2
let secondValue: Int = 4
let product = "firstValue * secondValue"
let output = "The product of \(firstValue) times \(secondValue) is \(product)"

1 Answer

Johnny Nguyen
Johnny Nguyen
3,875 Points

You have to apply String Interpolation:

let product = "\(firstValue * secondValue)"