Google MCQ Problem
Consider the following loop
int count=0;
for(i=0;i<10;i++)
for(j=i+1;j<10;j++)
for(k=j+1;k<10;k++)
for(l=k+1;l<10;l++)
for(m=l+1;m<10;m++)
count++;
What is the value of count?
int count=0;
for(i=0;i<10;i++)
for(j=i+1;j<10;j++)
for(k=j+1;k<10;k++)
for(l=k+1;l<10;l++)
for(m=l+1;m<10;m++)
count++;
Comments
Post a Comment