title: How to print reverse for loop from right to left
body: <p>How to print reverse for loop from right to left below is my for loop which displays value like this   I want to change output like mirror image value that show from left to right I want to show from  right to left see below:</p>
  
  <pre><code>int r;
  int p;
  r=31;
  for (i = 0,p=r; i &lt; week_no; i++,p--)
  {
       HoyahCalendar.a[i / 7][i % 7] = String.valueOf(p); 
  }
  </code></pre>
  
  <p>Output is like this</p>
  
  <p><code>31 30 29 28</code></p>
  
  <p>I want to show like </p>
  
  <p><code>28 29 30 31</code></p>