Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let student = ("Romantsev", "Igor", "Vitalevich")
- switch student {
- case (_, let name, _) where ((name[name.startIndex] == "A") || (name[name.startIndex] == "O")): print("Hello \(name)")
- case (_, _, let fathName) where ((fathName[fathName.startIndex] == "V") || (fathName[fathName.startIndex] == "D")): print("Hello \(student.1) \(fathName)")
- case (let surname, _, _) where ((surname[surname.startIndex] == "E") || (surname[surname.startIndex] == "Z")): print("Hello \(surname)")
- default: print("Hello \(student.0) \(student.1) \(student.2)")
- }
- //4 задание
- for i in 0..<1 {
- for j in 0..<1 {
- let point : (x: String?, y: String?) = (readLine(), readLine())
- switch point {
- case (""
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment