From: Andrea Manni Date: Thu, 19 Mar 2015 16:44:35 +0000 (+0100) Subject: giovedi 3 X-Git-Url: http://git.piffa.net/web?p=sketchbook_andrea;a=commitdiff_plain;h=96925106f4a3eb57fde2192c7213aab7a018f9c7 giovedi 3 --- 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 } +