for loop decrementing

when i use the following code it refuses to print anything over serial. i get "begin" but nthing else. What have i done wrong?

int rtc[4] = {
1,2,3 };
Serial.begin(9600);
Serial.println("begin");
for (int i = 3; i <1; i--) {
Serial.print(rtc*);*

  • if (i < 0) {*
  • Serial.print(":");*
  • }*
  • }*
    }
    it works if i change it to i++. Help!

In the first iteration through the loop, i is 3 and the condition 3<1 is false, so the loop exits. The loop body is never executed.

-j

Maybe you need:

for (int i = 3; i > 1; i--) {