So I'm new to Arduino and experimenting with switch-case statements. I want to have a basic for loop count 3 times and print a message to the monitor. When I run the code nothing shows up on the screen. Any ideas about what I am doing wrong?
int x;
void setup() {
Serial.begin(9600);
for(int x = 0; x < 0; x++);{
switch (x) {
case 1:
Serial.println("My name is Bob");
break;
case 2:
Serial.println("Sike");
break;
case 3:
Serial.println("No it's not");
break;
default:
break;
}
}
}
void loop() {
}