title: How to sort images into rows in C
body: <p>Very simple problem, but can't seem to solve it. I'm probably just not thinking right. So I'm using C and I need to be able to sort some images I download into two rows. Like this: <a href="https://i.imgur.com/lWkEO.png" rel="nofollow noreferrer">http://i.imgur.com/lWkEO.png</a>
  So my program will, say, download 30 images and it has to sort it into these two rows just like you see in the picture. So I know I have to loop through them but can't seem to get it.
  Can someone please help me out? Like I said I know it's simple but just can't seem to get it to work! Thanks so much! :D</p>