testing

Run Settings
LanguageSwift
Language Version
Run Command
/* print("Hello World!") var friendlyWelcome = "Hello!" friendlyWelcome = "Bonjour!" print(friendlyWelcome) print("The current value of friendlyWelcome is \(friendlyWelcome)") */ //var str = "Hello, playground"; print(str) /*let apple = 3.5 let banana : Double = 4.1 //note lebih gampang pake double let mango : Float = 2.4 */
/*print(1.0, 2.0, 3.0, 4.0, 5.0, separator: "...") for n in 1...5 { print(n, terminator: "") } */ /* let minValueInt8 = Int8.min // minValue sama dengan -128, dan bertipe Int8 let maxValueInt8 = Int8.max // maxValue sama dengan 127, dan bertipe Int8 let minValueInt16 = Int16.min // minValue sama dengan -32768, dan bertipe Int16 let maxValueInt16 = Int16.max // maxValue sama dengan 32767, dan bertipe Int16 let minValueInt32 = Int32.min // minValue sama dengan -2147483648, dan bertipe Int32 let maxValueInt32 = Int32.max // maxValue is equal to 2147483647, dan bertipe Int32 let minValueInt64 = Int64.min // minValue sama dengan -9223372036854775808, dan bertipe Int64 let maxValueInt64 = Int64.max // maxValue sama dengan 9223372036854775807, dan bertipe Int64 */ /* let minValueUInt8 = UInt8.min // minValue sama dengan 0, dan bertipe UInt8 let maxValueUInt8 = UInt8.max // maxValue sama dengan 255, dan bertipe UInt8 let minValueUInt16 = UInt16.min // minValue sama dengan 0, dan bertipe UInt16 let maxValueUInt16 = UInt16.max // maxValue sama dengan 65535, dan bertipe UInt16 let minValueUInt32 = UInt32.min // minValue sama dengan 0, dan bertipe UInt32 let maxValueUInt32 = UInt32.max // maxValue sama dengan 4294967295, dan bertipe UInt32 let minValueUInt64 = UInt64.min // minValue sama dengan 0, dan bertipe UInt64 let maxValueUInt64 = UInt64.max // maxValue sama dengan 9223372036854775807, dan bertipe UInt64 */
//ini adalah contoh songle line command /* ini adalah contoh multiple comment*/ /* ini contoh blok pertama /* ini contoh blo kedua */ ini masih blok di pertma */ /* let age = 42 print(age) let pi = 3.14159 print(pi) let anotherPi = 3 + 0.14159 print(anotherPi) */
/* let decimalInteger = 18 print(decimalInteger) let binaryInteger = 0b10010 // 17 in binary notation print(binaryInteger) let octalInteger = 0o22 // 17 in octal notation print(octalInteger) let hexadecimalInteger = 0x12 // 17 in hexadecimal notation print(hexadecimalInteger) let decimalExponen = 1.25e2 // 1.25e2 means 1.25 x 102, or 125.0. print(decimalExponen) let anotherDecimalExponen = 1.25e-2 // 1.25e-2 means 1.25 x 10-2, or 0.0125. print(anotherDecimalExponen) let hexadecimalExponen = 0xFp2 // 0xFp2 means 15 x 22, or 60.0. print(hexadecimalExponen) let anotherHexadecimalExponen = 0xFp-2 // 0xFp-2 means 15 x 2-2, or 3.75. print(anotherHexadecimalExponen) let decimalDouble = 12.1875 print(decimalDouble) let exponentDouble = 1.21875e1 print(exponentDouble) let hexadecimalDouble = 0xC.3p0 print(hexadecimalDouble) let paddedDouble = 000123.456 // 123.456 print(paddedDouble) let oneMillion = 1_000_000 // 1000000 print(oneMillion) let justOverOneMillion = 1_000_000.000_000_1 // 1000000.0000001 print(justOverOneMillion) */
Editor Settings
Theme
Key bindings
Full width
Lines