4 ответов
+ 1
Pedro H.J Thanks for the help, but I already found the reason. Before "!" there was an invisible bug when copying.
11th Feb 2020, 9:54 PM
Solo
Solo - avatar
+ 2
let siblings = Int(readLine()!)! let popsicles = Int(readLine()!)! if (popsicles % siblings == 0) { print ("give away") } else { print ("eat them yourself") }
11th Feb 2020, 2:04 PM
Pedro H.J
Pedro H.J - avatar
+ 2
Change your code add this let siblings = Int(readLine()!)! let popsicles = Int(readLine()!)!
11th Feb 2020, 9:26 PM
Pedro H.J
Pedro H.J - avatar
+ 1
Pedro H.J Your code is certainly working, as well as mine, but for some reason in this particular case it does not work😕
11th Feb 2020, 2:13 PM
Solo
Solo - avatar