title: Is there a way in C++ to only return the the last instance of a for loop?
body: <p>Like for example:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main()
  {
      for (int n=10; n&gt;0; n--){
          cout&lt;&lt; n &lt;&lt;", ";}
  }
  </code></pre>
  
  <p>This will output the numbers 10,9,8,7,6,5,4,3,2,1
  So is there a new way so I just get the last instance of the loop, the 1?
  I new at this and google isn't giving me any answers.</p>