New course! Every coder should learn Generative AI!
Try a free lesson0
Return type
Don’t know what I did wrong says method must have return type https://code.sololearn.com/c2Ct5BAaCV8T/?ref=app
2 Answers
- 1
public int fight(ref int mcurhp, ref int damage)
{
return (mcurhp - damage);
}
0
thx