Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch value1 {
- case 10:
- print("A")
- fallthrough
- case 20:
- print("B")
- default:
- print("C")
- }
- var i = 0
- repeat {
- i += 1
- print("A", i)
- } while i < 10
- i = 0
- while i < 10 {
- i += 1
- print("B", i)
- }
- for i in 0 ..< 10 {
- print("C", i)
- }
- for i in 1 ... 1 {
- print("D", i)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement