Closed bpursley closed 10 years ago
"The sum of numbers from 0 to 10 is: 45 The double of this sum is: 90"
Actually, the sum of numbers from 0 to 10 is 55
Your loop only sums numbers from 0 to 9
for i:=0; i<10; i++{ sum += i
Sorry - wrong "go-book" with an identical chapter heading.
go-book.appsp0t.com
"The sum of numbers from 0 to 10 is: 45 The double of this sum is: 90"
Actually, the sum of numbers from 0 to 10 is 55
Your loop only sums numbers from 0 to 9