Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Сложение и массивы (копия)
// переменная var // var g = 2 // константа let // let h: Float // h = 5.0 // var b = h+8+1 // вывод на экран // print(b) // let a = 3 // let o = 5 // let i: String // i = "aldya" // let aSummary = "I have \(a) apples." // let fruitSummary = "I have \(a + o) \(i) pieces of fruit." // print(aSummary); print(fruitSummary) var shoppingList = ["catfish", "water", "tulips", "blue paint"] shoppingList[1] = "bottle of water" var occupations = [ "Malcolm": "Captain", "Kaylee": "Mechanic", ] occupations["Jayne"] = "Public Relations" print (shoppingList); print (occupations)
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
expression resolves to an unused function
swift Fibonacci Series
Summation Function
factorial
Swift 3 components vs regex
test
Tuple iteration
Summation Function
Prueba1
for...where in swift
Please log in to post a comment.