Loop initialization block is executed first and only once. Therefore, an 'A' symbol will be displayed first, and it will not be displayed any more.
At each loop iteration a condition checks ('B') is executed first, a body of loop ('D') is executed after that, and variables modification block ('C') is executed then.
Since two loop iterations are performed, then symbols 'BDC' will be displayed twice.
Loop terminates when the cycle continuation condition becomes false. Thus symbol 'B' will be displayed last
Войдите чтобы поставить Нравится
Войдите чтобы прокомментировать