You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Language/Variables/Data Types/int.adoc
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,6 @@ categories: [ "Variables" ]
4
4
subCategories: [ "Data Types" ]
5
5
---
6
6
7
-
8
-
9
-
10
-
11
7
= int
12
8
13
9
@@ -48,11 +44,11 @@ The Arduino takes care of dealing with negative numbers for you, so that arithme
48
44
[float]
49
45
=== Example Code
50
46
// Describe what the example code is all about and add relevant code ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄
51
-
This code creates an integer called 'countUp', which is initially set as the number 0 (zero). The variable goes up by 1 (one) each loop and displayed on the serial monitor.
47
+
This code creates an integer called 'countUp', which is initially set as the number 0 (zero). The variable goes up by 1 (one) each loop, being displayed on the serial monitor.
52
48
53
49
[source,arduino]
54
50
----
55
-
int countUp = 0; //creates a variable integer called 'countUp'
51
+
int countUp = 0; //creates a variable integer called 'countUp'
56
52
57
53
void setup() {
58
54
Serial.begin(9600); // use the serial port to print the number
0 commit comments