title: how to fill each structure of my array of structures with cycle-for and scanf?
body: <p>I am new on this website and it looks cool.</p>
  
  <p>I have this issue where I want to make a program where the user decides how many books to declare, next  the user fills the info for each book requested (e.g.: user wants 3 books, so he fills in all the info for these 3 books). </p>
  
  <p>I think I need an array structure, but i do not have any idea how to loop through this filling process.</p>
  
  <p>This is my code: </p>
  
  <pre><code>struct book
      {
      char bname[20];
      int pages;
      char author[20];
      long price; 
  };
  
  printf("enter number of books to store");
  scanf("%d",&amp;unumber);
  for (i=0;i&lt;number_of_books;i++) {printf's and scanf's to fill each struct}
  </code></pre>