For Loop Help
i got arduino uno , playing code. thought understood basics loop stuck, not exiting after text met.
i @ loss. simple loop yet stuck
help please
/*
loop
*/
void setup() {
serial.begin(9600);
}
void loop()
{
for(int x = 2; x < 100; x = x * 1.5){
serial.println(x);
}
}
i @ loss. simple loop yet stuck
help please
/*
loop
*/
void setup() {
serial.begin(9600);
}
void loop()
{
for(int x = 2; x < 100; x = x * 1.5){
serial.println(x);
}
}
duh!!
i should have put in setup instead of in loop()
like this
/*
loop
*/
void setup() {
serial.begin(9600);
for(int x = 2; x < 10; x++)
{
serial.println(x);
}
}
void loop() {
}
i should have put in setup instead of in loop()
like this
/*
loop
*/
void setup() {
serial.begin(9600);
for(int x = 2; x < 10; x++)
{
serial.println(x);
}
}
void loop() {
}
Arduino Forum > Using Arduino > Programming Questions > For Loop Help
arduino
Comments
Post a Comment