Return type | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Return type

Donā€™t know what I did wrong says method must have return type https://code.sololearn.com/c2Ct5BAaCV8T/?ref=app

9th Jun 2020, 4:44 PM
anton
2 Respostas
- 1
public int fight(ref int mcurhp, ref int damage) { return (mcurhp - damage); }
9th Jun 2020, 4:48 PM
Emanuel MaliaƱo
Emanuel MaliaƱo - avatar
0
thx
9th Jun 2020, 4:49 PM
anton