what is the difference between repeat and forever block
Answers
Answered by
55
Difference between repeat and forever block
Step-by-step 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
}
Answered by
10
Answer:
you can't give me correct information
Similar questions
Science,
5 months ago
Math,
5 months ago
English,
5 months ago
Science,
1 year ago
Computer Science,
1 year ago