X-Git-Url: http://git.piffa.net/web?a=blobdiff_plain;f=programming%2Foperators%2Foperator_1_basic%2Foperator_1_basic.ino;fp=programming%2Foperators%2Foperator_1_basic%2Foperator_1_basic.ino;h=1a8bd6bb248c511c606358097ce9e253c295bf73;hb=96925106f4a3eb57fde2192c7213aab7a018f9c7;hp=2d9a403881d010dcec9c07041a9bfbaedd151dab;hpb=e50f2cf8e7402ea56cd01835be9f88c53876bfd1;p=sketchbook_andrea diff --git a/programming/operators/operator_1_basic/operator_1_basic.ino b/programming/operators/operator_1_basic/operator_1_basic.ino index 2d9a403..1a8bd6b 100644 --- a/programming/operators/operator_1_basic/operator_1_basic.ino +++ b/programming/operators/operator_1_basic/operator_1_basic.ino @@ -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 } +