This preview shows page 1. Sign up to view the full content.
Unformatted text preview: 2. In the for loop, the boundaries should be i<8, not i>8. 3. x needs to be set with an initial value of 0. 4. x=+1 should be x+=1 5. In the for loop, the three parts should be separated by semicolons, not commas. The new output will be: The sum of integers 1 to 7 is 28...
View Full Document
- Spring '08