Question: Write a code with usin Arduino! 5) What gets print in the following int myvar; for(myvar =1; myvar < 5; myvar = myvar +1){ Serial.print(myvar);

Write a code with usin Arduino!

5) What gets print in the following

int myvar;

for(myvar =1; myvar < 5; myvar = myvar +1){

Serial.print(myvar);

Serial.print( ); // print a space

}

6.) int cycles =10;

for (z=10; z>=0; z--){

Serial.println( 10-z); // statements

}

7. ) What will these code segments print out:

A. for (int k =0; k<=11; k+=2){

Serial.println(k);

}

B.

int j

for (j=3;j!=0; j--){ // != means does not equal

Serial.print(j);

Serial.print(", ");

}

8. How many times will this for loop be executed?

for( int j=0; j<=10; j++){

BlinkLed(red);

j = 9;

}

9. Using a for loop make this print out on the serial monitor

10

9

8

7

6

5

4

3

2

1

10. Now do 1, 2, 3, 4,510

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!