What is the value of the variable count after all the loops
What is the value of the variable count after all the loops in the following pseudocode execute? (5 points) count:=0 For i= 1 to 2 For j=1 to 2 count:=2j(count-1) End-for End-for
Solution
for(i=1;i<=2;i++)
{
for(j=1;j<=2;;j++)
{
count=2*j*(count-1)
}
}
Answer count= -108
