Math, asked by shichan68, 10 months ago

what is the difference between repeat and forever block​

Answers

Answered by suskumari135
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 oselclw
10

Answer:

you can't give me correct information

Similar questions