dim $ten,$twenty,$fifty
dim $s
$s=""
for $ten=0 to 20
for $twenty=0 to 20
for $fifty=0 to 12
if $ten+$twenty+$fifty=20 and _ $ten*10+$twenty*20+$fifty*50=600 Then
$s=$s&"10元: "&$ten&"张 "&"20_元: "&$twenty&"张 "&"50元: "&$fifty&"张 "&@CRLF
EndIf
Next
Next
Next
msgbox(0,"循环结构实例",$s)
象这段代码 中 是三重循环
for $ten=0 to 20 ;外循环
for $twenty=0 to 20 ;中循环
for $fifty=0 to 12 ;内循环
是不是当外循环循环一次 $ten=0 中循环 0,1,2..........20都循环
内循环 0,1,2..........20都循环
$ten=1 中循环 0,1,2,............20都循环
.............................. 内循环 0,1,2..........20都循环
是 吗??