Multiplying ints in swift
问题 I am new to swift and iOS programming and learning slowly here. So I have: @IBOutlet weak var timeEntered: UITextField! @IBAction func countDown(sender: AnyObject) { var total = timeEntered.text.toInt() total = total *7 } The line total = total *7 gives me the error "Consecutive statements on a line must be separated by a ;" I read here that you should do ( I don't know why but...) total = total! *7 And still I get the same error. Any help would be highly appreciated. Thanks! 回答1: I think