Practice · 2 of 4
Normalize Health
CHALLENGE
Difficulty: beginner+25 XP
Given struct Player { int hp; }; in scope, implement void heal(struct Player *pl, int amount) raising hp by amount but never above 100.
Press Submit to check your solution.
Back to lesson: Practice: Mutating Operations