Homework+-+Specifying+Algorithms

a = 1; b = 0; while (a <= 10) { b = b + a; a++; } cout << b;

1. a= 1 b= 1 2. a= 2 b= 3 3. a= 3 b= 5 4. a= 4 b= 7 5. a= 5 b= 9 6. a= 6 b= 11 7. a= 7 b= 13 8. a= 8 b= 15 9. a= 9 b= 17 10.a= 10 b= 19 11. Display "b"