What will be the value of sum after the following program is executed? main() { int sum, index; sum = 1; index = 9; do { index = index - 1; sum = 2*sum; } while(index >9);
Reveal answer
Fill a bubble to check yourself
What will be the value of sum after the following program is executed? main() { int sum, index; sum = 1; index = 9; do { index = index - 1; sum = 2*sum; } while(index >9);