Little hero Pip beat a monster and levels up: level goes up by 1 and hp by 10. Change those two in hero; the line that prints them is already written.
Pip: level 5, hp 90
#include <stdio.h>
struct Hero {
char name[20];
int level;
int hp;
};
int main(void) {
struct Hero hero = {"Pip", 4, 80};
// your code here: add 1 to hero.level and 10 to hero.hp
printf("%s: level %d, hp %d\n", hero.name, hero.level, hero.hp);
return 0;
}
Run tries the examples. When they look right, Submit.