4 ответов
+ 1
Pedro H.J
Thanks for the help, but I already found the reason.
Before "!" there was an invisible bug when copying.
+ 2
let siblings = Int(readLine()!)!
let popsicles = Int(readLine()!)!
if (popsicles % siblings == 0) {
print ("give away")
}
else
{
print ("eat them yourself")
}
+ 2
Change your code add this
let siblings = Int(readLine()!)!
let popsicles = Int(readLine()!)!
+ 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😕