]> git.piffa.net Git - sketchbook_andrea/blobdiff - programming/operators/operator_1_basic/operator_1_basic.ino
giovedi 3
[sketchbook_andrea] / programming / operators / operator_1_basic / operator_1_basic.ino
index 2d9a403881d010dcec9c07041a9bfbaedd151dab..1a8bd6bb248c511c606358097ce9e253c295bf73 100644 (file)
@@ -37,6 +37,22 @@ void setup()                    // run once, when the sketch starts
 
   Serial.print("8 modulo 3 = ");       // Calculates the remainder when one integer is divided by another. 
   Serial.println(8 % 3);
+
+  Serial.print("a incrementato ++ = ");       // Increments 
+  Serial.println(a++);                        // Increments AFTER the call
+  Serial.print("valore attuale di a: ");
+  Serial.println(a);
+  Serial.print("++a incrementato  = ");       
+  Serial.println(++a);                        // Increments BEFORE the call
+
+
+  Serial.print("b decrementato -- = ");       // Decrement
+  Serial.println(b--);
+  Serial.print("valore attuale di b: ");
+  Serial.println(b);
+  Serial.print("--b decrementato  = ");       
+  Serial.println(--b);
+
 }
 
 void loop()                     // we need this to be here even though its empty
@@ -44,3 +60,4 @@ void loop()                     // we need this to be here even though its empty
 }
 
 
+