Variable used before being initialized

I dont know why error message is being shown next to return c

func multTwoNumber(number1:Int, number2:Int) -> Int {
var a = number1
var b = number2
var c: Int
if(a<b){
print(“sorry this number is less than 1st number”)
}
else {
c = a * b

}
return c

}

Because you are trying to return c without it being initialized. Your code will work fine if a > b but if a < b then c will never get set. There are a couple of ways you could solve this and the correct one depends on what you want your return value to be if a < b.