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