Last active
November 30, 2021 06:59
-
-
Save suyenish/4e12de41bd2c323c23a21da8907cea48 to your computer and use it in GitHub Desktop.
practicing Swift data types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
var x = 20 | |
let const = 7 | |
var x1 : Int = 13 | |
var x2 : Double = 6.2 | |
var x3 : Float = 3.377777 | |
var sum = x1 + Int(x2) | |
typealias myNumber = Int | |
var y : myNumber = 6 | |
print(y) | |
var doter : Bool = true | |
(doter == true ? print("Bye!") : print("Hello!")) | |
var zp = 10_000_000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment