i am new to arduino and do not understand why this code below only prints out zeroes. Any help is appreciated
int x = 0;
int y= 0;
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
x = 5;
y = x/10;
Serial.println(y);
}
Please edit your post, select all code and click the </> button to apply code tags. Next save your post.
Code tags will preserve formatting, prevent odd characters showing (not in your case) and makes it easier to read an copy.