根据7#的方法思路,我也做一个看看。呵呵 !
用vb脚本:
<%
sub hs()
dim x,y
for x=1 to 100
If 4*x+(100-x)/4=100 then
y=100-x
response.write "大和尚:"&x&"<br>小和尚: "&y
End if
next
end sub
call hs()
%>
<%
dim i,j,ren,mantou
for i=1 to 100 for j=1 to 100 ren=i+j mantou=i*4+j*0.25
if ren=100 and mantou=100 then
response.write "大人有"&i&"个"&",小人有"&j&"个"
end if next
next
%>