answersLogoWhite

0


Best Answer

It's best to use a for loop.

For example, if you want 10 iterations:

for (int i = 1; i <= 10; i++)
{
// Any commands you write here will repeat 10 times.

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

A for loop is usually easiest in this case; although it can be done with a while loop as well.

Here is an example in Java, with for:

for (i = 1; i <= 10; i++)
{
// Do something - what you write here will be repeated 10 times
}

A for loop is usually easiest in this case; although it can be done with a while loop as well.

Here is an example in Java, with for:

for (i = 1; i <= 10; i++)
{
// Do something - what you write here will be repeated 10 times
}

A for loop is usually easiest in this case; although it can be done with a while loop as well.

Here is an example in Java, with for:

for (i = 1; i <= 10; i++)
{
// Do something - what you write here will be repeated 10 times
}

A for loop is usually easiest in this case; although it can be done with a while loop as well.

Here is an example in Java, with for:

for (i = 1; i <= 10; i++)
{
// Do something - what you write here will be repeated 10 times
}

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

A for loop is usually easiest in this case; although it can be done with a while loop as well.

Here is an example in Java, with for:

for (i = 1; i <= 10; i++)
{
// Do something - what you write here will be repeated 10 times
}

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

counter-controlled loop

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What time of loop is used when you know how many times the loop instructions should be processed?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does anyone know the Instructions for the mickey mouse yahtzee game and poker-keeno game or where I can find them?

Originally the instructions should of came with the game if not go online to the website for the company it was made from and the instructions should be on there


What should I know before I install a fiberglass column?

Go over the instructions listed here fiberglass column


Where can you find instructions on how to build a wooden toy garage?

If you know any good wood shops then you should be able to find some instructions for any craft you may want. They should have some too in a store called the Home Depot.


What grade should you know my 3 times tables?

On average u should know them in first or second grade !


What is 3 times 150?

everybody should know that 3 times 150 is 450.


How do you know they have processed your taxes?

Once you have submitted your Tax returns, you will receive a letter with your new Tax code after it gets processed


Is there a sequel to what my girlfriend doesn't know?

no...but your girlfriend should know where you are and what your doing at all times.


What should you do with the blue button?

You should definitely not click on it. I know, you followed the instructions at the bottom of the screen and it told you to come here and ask this question. Now, just follow these instructions: Hold down on the "control" key on your keyboard and press the "F4" key twice.


How does origami involve with math?

Simple instructions such as 'repeat four times' - if you don't understand maths, you cannot know if you've repeated the required number of times. I've not done any origami for years !


What is 8 times by 9?

76


How did people get Education for a weaver in the colonial times?

i dont know but you should


What does 45 times 4 equal?

180 dude you should know this