----- CAPITULO 3 -------


Ejemplo numero 1

Codigo de Ejercicio:

  • Tipos de Datos y Variables
  • 
    //: Playground - noun: a place where people can play
    
    //JEHOVANI DE JESUS CHAVEZ SEGOVIA 2561842011
    
    // USANDO VARIABLES Y TIPOS DE DATOS EN PLAYGROUNDS
    
    import UIKit
    
    
    var str = "Hello, Playground"
    
    
    
    var firstNumber = 2
    var secondNumber = 3
    
    var totalSum = firstNumber + secondNumber
    
    firstNumber = firstNumber + 1
    secondNumber = secondNumber + 1
    
    
    totalSum = firstNumber + secondNumber
    
    
    println("totalSum = \(totalSum)")
    
    
    
    println(str)