dim j as integer
static i as integer
dim s,c,d as string
dim b(1 to 4) as string
i=1
s=inputbox("请输入4个数","计算")
for i=1 to 4
do while(s,i,1)<>","
if c=mid(s,i,1)<>"," then
d=s & c
end if
i=i+1
loop
b(1)=d
next for
form1.print b(1)+b(2)+b(3)+b(4)
form1.print (b(1)+b(2)+b(3)+b(4))/4