user76576: I have a problem with a for loop, and Serial.print("Its Working") does not appear. Seems simple, I've done it before, now for whatever reason, its not working anymore
void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:

  for (int x = 0; x > 10; x++) {

    Serial.println("Its Working");
    delay(1000);
  }
}


user4143: The problem is:
for (int x = 0; x > 10; x++) {

That can be rewritten, in pseudo code, as:

X is zero
While X is greater than 10:

Increment X



You see the problem? X is zero. It's not greater than 10, so it never increments.
I assume you actually wanted:
for (int x = 0; x < 10; x++) {

Also be aware that your for loop will be run over and over again, so you will never see it finish.  You should add
Serial.println("Loop done");

at the end so you know it's finished.

76576: <p>I have a problem with a for loop, and <code>Serial.print(&quot;Its Working&quot;)</code> does not appear. Seems simple, I've done it before, now for whatever reason, its not working anymore</p>
<pre><code>void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:

  for (int x = 0; x &gt; 10; x++) {

    Serial.println(&quot;Its Working&quot;);
    delay(1000);
  }
}
</code></pre>
 4143: <p>The problem is:</p>
<pre class="lang-cpp prettyprint-override"><code>for (int x = 0; x &gt; 10; x++) {
</code></pre>
<p>That can be rewritten, in pseudo code, as:</p>
<ul>
<li>X is zero</li>
<li>While X is greater than 10:
<ul>
<li>Increment X</li>
</ul>
</li>
</ul>
<p>You see the problem? X is zero. It's not greater than 10, so it never increments.</p>
<p>I <em>assume</em> you actually wanted:</p>
<pre class="lang-cpp prettyprint-override"><code>for (int x = 0; x &lt; 10; x++) {
</code></pre>
<p>Also be aware that your <code>for</code> loop will be run over and over again, so you will never see it finish.  You should add</p>
<pre class="lang-cpp prettyprint-override"><code>Serial.println(&quot;Loop done&quot;);
</code></pre>
<p>at the end so you know it's finished.</p>
