From 96925106f4a3eb57fde2192c7213aab7a018f9c7 Mon Sep 17 00:00:00 2001 From: Andrea Manni Date: Thu, 19 Mar 2015 17:44:35 +0100 Subject: [PATCH] giovedi 3 --- .../operator_1_basic/operator_1_basic.ino | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 } + -- 2.39.2