Contact: aviboots(AT)netvision.net.il
39,851 questions
51,772 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 */