Computer Science, asked by Nigam7203, 1 year ago

int ctr=1,sum=0,check=1;
do{
cout<
sum=sum+ctr;
ctr+=2;
check=(ctr<11);
}while(check)
In this snippet what is the control variable?

Answers

Answered by omegads03
0

int ctr=1,sum=0,check=1;

do{

cont<

sum=sum+ctr;

ctr+=2;

check=(ctr<11);

}while(check)

In this snippet check is the control variable

Similar questions