I←1
While I<8
S←2I+3
I=I+2
End while
Print S
第二次循环:S=2×3+3=9,i=5;
第三次循环:S=2×5+3=13,i=7;
第四次循环:S=2×7+3=17,i=9;
此时i≥8,退出循环,∴最终S=17.