+ 11
I don't see any line of code that changes the monstersHPS. So, the loop just keeps going if his hp is from 1-30. You need to decrease his HP at some point.
Also, why <= 30? Is the 30 just a test number?
edit:
Perhaps what you're looking for:
monsterHPS -= damageS;
// instead of the 'hit' variable
Also, if you only want to decrease the hp when the user says attack, perhaps place the while loop before the input is taken frrom the user.



