What will be the output of the following c++ program. How many times will the loop get executed.
#include iostream.h
void main() {
int num=10,sum=0,i=1;
while(i<=num) {
sum=sum+i;
i++;
}
Answers
Answered by
0
are you sure that programme is correct
Answered by
0
The answer for this question is 55
king180:
hello bhosdi ke
Similar questions