now what i would like to do is make it so it does it in rounds, so it repeats the code until newhealth is less than 1. i just dont know how to loop it if you get what i mean. i would like it to look like:

ok, here's a psueduocode example of what you want to do... i'm not giving you any actual code (except for a loop recomendation). just fill in the needed code where the comments are, and you should be off to a good start:

while (/* Player Health > 0 AND Enemy Health > 0 */)
{
// Figure out who hits first (keep in mind that the opponent
// can only strike back if he still has more than 0 HP).
// First Strike
// If opponent's health is greater than 0, you haven't killed
// them yet, so do Second Strike now
}

that's really all there is to the logic. i'd recommend you write a class that handles all the attacking and defending logic within it so you can simply do something like this for your loop: