title: sum and store data from for statement
body: <p>I need to memorize the data that comes out of this FOR statement</p>
  
  <pre><code>for (UTEModelSportWalkRun *model in arraySport) {
      NSLog(@"sport *** time = %@, Total step = %ld, walkDistance = %f , walkCalorie = %f, runDistance = %f, runCalorie = %f",
      model.time, (long)model.stepsTotal, model.walkDistances, model.walkCalories, model.runDistances, model.runCalories);
  }
  </code></pre>
  
  <p>I need to add up all the model.stepTotal and memorize the sum in some way. Now it comes out like this:</p>
  
  <blockquote>
    <p>sport *** time = 2019-05-30-17, Total step = 14, walkDistance = 9.764355, walkCalorie = 0.346086, runDistance = 0.000000, runCalories = 0.000000<br>
    sport *** time = 2019-05-31-10, Total step = 67, walkDistance = 46.729411, walkCalorie = 1.656267, runDistance = 0.000000, runCalories = 0.000000<br>
    sport *** time = 2019-05-31-11, Total step = 520, walkDistance = 362.676028, walkCalorie = 12.854608,
    runDistance = 0.000000, runCalories = 0.000000</p>
  </blockquote>
  
  <p>.....</p>