title: How is this wrong?[HackerRank Loop in java]
body: <p>I am doing this problem in HackerRank <a href="https://www.hackerrank.com/challenges/java-loops-i/copy-from/26053352" rel="nofollow">https://www.hackerrank.com/challenges/java-loops-i/copy-from/26053352</a></p>
  
  <p>My code outputs the same exact answer as the expected output as the expected answer. But my answer is wrong and only passes the first test case. Wtf am I doing wrong?</p>
  
  <pre><code>import java.io.*;
  import java.util.*;
  
  public class Solution
  {
      public static void main(String[] args)
      {
          int n = 2;
          for(int i = 1; i &lt;= 10; i++)
          {
              System.out.printf("%d x %d = %d\n", n, i, i*n);
          }
      }
  }
  </code></pre>