Jump to content

Simple Java Problem

So, I would like the results to automatically replace the values of pa, pb, pc and pd. Instead of manually replacing them every-time. How can I use a loop to run this program 20 times

without changing the values of the variables in each iteration ?

 

1541129083_ScreenShot2020-04-18at7_02_59PM.thumb.png.d15d3ebfcd9905053d1cfa2724e38737.png

Link to comment
Share on other sites

Link to post
Share on other sites

Just declare the variables outside the loop and update them inside it.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

On 4/18/2020 at 7:12 PM, Sauron said:

Just declare the variables outside the loop and update them inside it.

Figured it out. tTanks. 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×