Final Challenge Call takeDamage()

I put the code above in the main function.

Next I inserted the above inside the while loop of the main function. Tested and it works well.

Privacy & Terms