I am trying to access "numOne" right before the return statement and I can't seem to find why it is not working. Everything was fine accessing "numTwo". Is the reason because "numOne" is inside a range?
func checknumber() -> String {
var numTwo = 0
var range = 0...b
for numOne in range {
numTwo = b-numOne
if let result = isCommon(numOne: numOne, numTwo: numTwo) {
println("Success - \(numOne) and \(numTwo) Work")
break
} else {
println("Failure - \(numOne) and \(numTwo) Does NOT Work")
}
var numOneFinal = numOne
}
var numberTwo = "\(numTwo)"
var numberOne = "\(numOneFinal)"
return numberTwo
}
If anyone could point me in the right direction that would be greatly appreciated.