int x; int z; int y; char temp; void setup() { Serial.begin(9600); delay(2000); Serial.println("X % Y = Z"); x=0; z=0; y=10; } void loop() { z=x%y; Serial.print(" MOD : "); Serial.print(x); Serial.print(" % "); Serial.print(y); Serial.print(" = "); Serial.println(z); x++; z=0; delay(300); }