Contact: aviboots(AT)netvision.net.il
41,230 questions
53,732 answers
573 users
import Foundation print("Enter numbers, 42 to exit:") while let line = readLine() { let n = Int(line) if n == 42 { break } print(n!) } /* run: Enter numbers, 42 to exit: 5 5 8 8 0 0 34745 34745 42 */