<p><a href=“Barron's AP Computer Science A - Roselyn Teukolsky - Google Books”>Barron's AP Computer Science A - Roselyn Teukolsky - Google Books;
<p>That is the link but if you look up “Computer Science A which of the following replacements for /* code segment */” it’s the result in Barron’s book page 80. It’s the first result</p>
<p>Shouldn’t #1 work? It gets to 2 <= 2 which works. It ends on i > n and therefore it reverses the number.</p>