title: How to create a for loop in R?
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/4162363/how-to-start-a-for-loop-in-r-programming">how to start a for loop in R programming</a><br>
    <a href="https://stackoverflow.com/questions/2864920/creating-a-for-loop-in-r">Creating a for loop in R</a>  </p>
  </blockquote>
  
  
  
  <p>HI
  Here's the scenario</p>
  
  <p>Speed dating: You are confident that you have a 15% chance of landing a date with any given 
  candidate at a local speed dating event. At the event, you will meet exactly 8 candidates. After you talk to a candidate for 5 minutes, he/she will immediately indicate if she wants to go on a date with you.</p>
  
  <p>The question is...</p>
  
  <p>Through simulation, find your chances that the third candidate you meet is the first to 
  offer you a date.</p>
  
  <p>I am looking for the R code (I think it's a for loop) that will answer this question</p>