What initial values of a and c are required such that the final values of a and b are:
a = 32
b = 4
…
int a,b,c
a = ?
b = 0
c = ?
for( b=0; a<12; b++ )
{
a = (a+a) * c;
}
I have tried working it out but at loop 3 (b=3) I keep getting the value of a as 16 which is greater then 12. This is when I assume that a is 1 and c is 1 but it doesn't work.
Any help appreciated.
Kind Regards