I got my sample exam question in java. I saw this expression sum += sum + d
in the for loop.
Here is the code:
double sum =0;
for (double d = 0; d<10; sum += sum + d) {
d += 0.1;
}
I just dont understand that part.
I only know these:
x+=1
x=x + ++x;
x=x + x++;
Thanks in advance!