I am trying to run this simple code to display numbers on Serial monitor but I am getting the following error:
expected '(' before 'x'
Can anyone tell me what I am doing wrong please
int x;
void setup() {
// put your setup code here, to run once:
Serial.begin (9600);
}
void loop() {
// put your main code here, to run repeatedly:
for x in ( 1, 2, 3, 7, 15 )
{
Serial.println (x);
delay (100);
}
}