Quick actions

cmd+k|ctrl+k

Navigation

Languages

Belajar Swift

Snippet info

Language

Swift

Visibility

public

Author

simson.pjtn1

Created

2020-04-12T15:03:46Z

Updated

2020-04-20T06:38:30Z

for n in 1...12{
    print (n, terminator: ",")
}

let minValueInt8 = Int8.min
let maxValueUInt64 = UInt64.max
print ("\nThe max value is \(maxValueUInt64)")

let Samsung = 4.2
let Xiaomi : Double = 3.5
let Apple : Float = 4.9
print (Samsung, Xiaomi, Apple, separator: "\n")

let age = 21
let pi = 3.14159
let anotherPi = 22 / 7
print (age, pi, anotherPi, separator:  "|")

let DInt = 18
let BInt = 0b10010
let OInt = 0o22
let HInt = 0x12
print (DInt, BInt, OInt, HInt, separator: ",")

typealias Simson = Int8
var minValue = Simson.min
print (minValue)
INFO