About Kotlin: ‘if’ must have both main and ‘else’ branches if used as an expression
nice to meet you all.. I have been studying Kotlin for a several days, I would like to ask about Kotlin. When I tried to run it, its says ‘if’ must have both main and ‘else’ branches if used as an expression. I have the score variable and the result variable as shown below. What’ve could go wrong about my code below??