InterviewSolution
Saved Bookmarks
| 1. |
will be the output of the following?int total=0;int sum0do fWhata)sum = sum + i;i++iwhile (i < 10);cout << total + sum |
|
Answer» output : 10explaination:total = 0at the end of tge execution of do-while loopsum =10 o/p= total + sum =0 +10= 10 thanks |
|