iOS Swift Basics Swift Types Recap: Swift Types

Michael Jenkins
Michael Jenkins
135 Points

Swift- I'm loss with this one.

Here's my code. The error I get is to make sure I'm using interpolated for output. Any suggestions would be very much appreciated

let firstValue = 2 let secondValue = 4 let product = (firstValue * secondValue) let output = product let interpolatedOutput = "(product), (output)"

types.swift
// Enter your code below
let firstValue = 2
let secondValue = 4
let product = (firstValue * secondValue)
let output = product
let interpolatedOutput = "\(product), \(output)"

1 Answer

If the input is 2 and 4:

The string should read: "The product of 2 times 4 is 8". Assign this string to a constant named output.