Extra Loop Practice
1
void setup()
2
{
3
Serial.begin(9600);
4
5
Serial.println("1 to 10 by 1");
6
for (int i = 1; i < 11; i= i+1)
7
{
8
Serial.println(i);
9
}
10
11
12
Serial.println("0 to 1000 by 100");
13
14
15
Serial.println("50 to 0 by 10");
16
17
18
Serial.println("0 to -10 by 1");
19
20
21
Serial.println("-25 to 75 by 25");
22
23
24
Serial.println("10 to -10 by 2");
25
26
27
Serial.println("7 to 49 by 7");
28
29
30
Serial.println("100 to 25 by halfing the number");
31
32
33
Serial.println("5 to 320 by doubling the number");
34
35
}
36
37
38
39
void loop()
40
{
41
///NOTHING GOES HERE
42
}
Copied!
Last modified 11mo ago
Export as PDF
Copy link