Something like this will continue to run and print the results while h > 0. I don't think it's exactly what you want, so it's an example of what you could do. You may massage it as needed.
public...
Type: Posts; User: GregBrannon
Something like this will continue to run and print the results while h > 0. I don't think it's exactly what you want, so it's an example of what you could do. You may massage it as needed.
public...
I told you how to do it in post #4. Try that and come back if you need help.
Please give your variables better names and add a few comments to your code to explain what the heck is supposed to be happening. Single-letter names or the dreaded single-letter plus a number are...