The AP Exam does not use for loops and while loops, but rather REPEAT OR REPEAT UNTIL commands as shown below. REPEAT A TIMES { } REPEAT UNTIL(condition) {
Which of the following best describes the behavior of this program? The program correctly displays the sum of all positive integers from 1 to number The program does not work as intended but rather it displays the number squared
The program does not work as intended but rather it displays the number factorial The program does not work as intended because sum should be initialized to 1.