You are viewing a single comment's thread. Return to all comments →
Here is a Swift 4 adopted solution:
import Foundation func squarator(x: Int) { if x >= 1 && x <= 1000 { print(x * x) } } //print("введите x:") if let n = readLine() { // print("ваш x: \(n)") squarator(x: Int(n)!) }
Seems like cookies are disabled on this browser, please enable them to open this website
Security Functions II
You are viewing a single comment's thread. Return to all comments →
Here is a Swift 4 adopted solution: