多重循环解决方案

多重循环多重循环fora1to10forb1to10forc1to10nextcnextbnexta怎样当c5(任意值,或者说任意条件)的时候

多重循环
多重循环
for   a=1   to   10
    for   b=1   to   10
        for   c=1   to   10
        next   c
    next   b
next   a

怎样当c=5(任意值,或者说任意条件)的时候,   a的值加1?

[解决办法]
for a=1 to 10
for b=1 to 10
for c=1 to 10
if c=5 then a=a+1
next c
next b
next a

我觉得你没有问明白,这样做没啥意义