ok heres the code to the game i`m making so far =/
#include <stdio.h>
main()
{
int health;
int shot;
for (health = 100; health != 0; health--)
{
printf("take a shot\n");
scanf("%d", &shot);
health = health - shot;
printf("now health is %d\n", health);
}
printf("you shot him\n");
now as you can see when ever the health is negative the game still continues now, i need to know whot to make it were when ever its a negative number (any) to end the loop
thnx
oh and sorry for not having the coding tags or whatever
-eldian()
}