title: Output the array of integer values to screen in reversed order using recursion
body: <pre><code>void IntegerReversed(int* a, int n)
  {
      if (n &lt; 1) {
          return;
      }
      else {
          cout &lt;&lt; a[n - 1] &lt;&lt; endl;
          Integer(a, n - 1);
      }
  }
  
  int main()
  {
      int* a;
      int n;
      cout &lt;&lt; "Input n: ";
      cin &gt;&gt; n;
      a = new int[n];
      for (int i = 0;i &lt; n;i++) {
          cin &gt;&gt; *(a + i);
      }
      cout &lt;&lt; "Integer values reversed in array: " &lt;&lt; endl;
      IntegerReversed(a, n);
  }
  </code></pre>
  
  <p>Hi this my code to output the array of integer values to screen in reversed order using recursion.</p>
  
  <p>but it only prints the first correct element</p>
  
  <p>Input : a[4]={1,2,3,4}</p>
  
  <p>But output :
  4 , 1 , 2 , 3 </p>
  
  <p>I want to print :
  4 , 3 , 2 , 1
  Can you help my fix this code</p>