error cannot assign value of type int to string swift - what am I doing wrong?
joshuam6060

print("guess a number that I thought of")
let number = Int.random(in: 0...100)
var z = readLine()
if z = number{
print("yay")
}

You are viewing a single comment. View All
Answered by Coder100 [earned 5 cycles]
View Answer
Coder100

@joshuam6060