What will be the value of sum after the following program is executed?
void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );}
void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );}What will be the value of sum after the following program is executed?
void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} Correct Answer 2
মোঃ আরিফুল ইসলাম
Feb 20, 2025