title: What is the difference between for and foreach?
body: <p>What is the major difference between <code>for</code> and <code>foreach</code> loops?</p>
  
  <p>In which scenarios can we use <code>for</code> and not <code>foreach</code> and vice versa.</p>
  
  <p>Would it be possible to show with a simple program?</p>
  
  <p>Both seem the same to me. I can't differentiate them.</p>