//
//  ViewController.swift
//  Imutable
//
//  Created by Tatsuya Tobioka on 2017/11/29.
//  Copyright © 2017 tnantoka. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        /// [marker1]
        let price = 2800.0
        price = price - 800 // error: cannot assign to value: 'price' is a 'let' constant
        let taxRate = 1.08
        let taxIn = price * taxRate
        
        print(taxIn)
        /// [marker1]
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

