I have a doubt about the for loop, that is, I have a for statement and I have to get the result that the machine gave. I have this:
for(x=2,Y=1;X < 11;x++)y+=x++
I know that the variable X starts at 2 and Y at 1. I know that while X is less than 11 it cycles. Here's my problem. Which cycle. I make x + 1 until X has the value of 11? Or I make the rule out that is:
x=x+1
y=y+x
Thank you