title: Program to print value of array using for loop
body: <p>i want to create this simple program using for loop.
  Now what it should do is get a value from an array and print it corresponding to the day(1-30).</p>
  <p>Here is my code.</p>
  <pre><code>#include&lt;stdio.h&gt;
  
  int main() {
  
      int j;
      int days=1;
      int value[]={31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1};
      
      for(days=1; days&lt;=31; days++){
          
              for(j=value[0]; j&lt;=value[].length; j++){
                  printf(&quot;%d \t %d\n&quot;, days, j);  
              }
          
          
          }
  }
  </code></pre>
  <p>when i run this the value[] doesnt change... i believe im having trouble incrementing the index of array...</p>
  <p>somebody help...
  how do i do it???</p>