different between forever and repeat block.
question is from scratch programming
Answers
Answered by
1
Answer:
Attach one or more block in a loop to repeat. Forever block repeats one or more blocks in a loop forever means the loop will never stop. Attach one or more block in a loop to repeat.
Answered by
0
Explanation:
Repeat Block
The Repeat X times block repeats one or more block for a given number of times in a loop.
Add a parameter as a number to determine the number of times the loop should be repeated.
Attach one or more block in a loop to repeat.
Example:
for (int z=0;z<10;z++)
{
// loop will iterate ten times from 0 to 9
}
Forever block
Forever block repeats one or more blocks in a loop forever means the loop will never stop.
Attach one or more block in a loop to repeat.
Example:
void loop()
{
//written code will repeat forever
}
please
Similar questions