title: How to display the numbers of integers that the user input?
body: <p>Sample output is this <a href="https://i.stack.imgur.com/Gnb26.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gnb26.png" alt="enter image description here" /></a></p>
  <pre><code>int nValue, x;
      Scanner input = new Scanner(System.in);
  
      System.out.print(&quot;Enter value of n: &quot;);
      nValue = input.nextInt();
  
      for (x = 1; x == nValue; x++){
          System.out.println(&quot;Enter number&quot; + x + &quot;: &quot;);
  </code></pre>
  <p>Any help is much appreciated.</p>