prog.c: In function ‘main’:
prog.c:9:15: warning: right-hand operand of comma expression has no effect [-Wunused-value]
for (health=0, health<=20, health++)
^
prog.c:9:37: error: expected ‘;’ before ‘)’ token
for (health=0, health<=20, health++)
^
prog.c:9:37: error: expected expression before ‘)’ token
prog.c:10:28: error: expected ‘)’ before ‘health’
printf("health is %d \n" health);
^~~~~~
prog.c:10:22: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
printf("health is %d \n" health);
^