for (x=1; y=5; x+y<=10; x++;y++)
Will result in compile errors. The for loop takes only three portions(or any other suitable word) of statements. Syntax:
@Aceix
Is your reply for me?
Because I suggested him the code for (x=1; y=5; x+y<=10; x++;y++)
But later when I tried in my lappy, I examined the error. So I took out my suggestion.
Both x and y are incremented by 1 at the end of each iteration of the loop. That means (x+y) goes up by 2 each time. Thus (x+y) is 6, 8 10, meaning three passes through the loop. The values of x and y output each time are straightforward.