Count not the way I think it should

Below is a vary simple count routine. It will work just fine as is. Why does it do a full count and then do the delay.


void setup() {
  // put your setup code here, to run once:


void loop() {
  // put your main code here, to run repeatedly:
  for (int C = 0; C < 5; C++)


Why doesn’t it print 1, then delay, print 2 then delay, and so on?

Because you did not use brackets in the for loop, it only executes the single statement. You want:

Thank you it works just fine now.