Return type | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
- 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