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
- Addition, Summation, Equals sign, ASCII, i=-2 m=-2