vb 编写一个标准模块,该模块包含一个能比较3个数大小和送回大数的SUB过程。调用该过程来求6个数的最大数。

最好能告诉具体的步骤该怎样做,谢谢哦

比较3个数大小了过程用来求6个数的最大值??
返回值的是FUNCTION,不是SUB
private function max3(a as integer ,b as integer,c as integer) as integer
dim max as integer
if a>b then
max=a
else
max=b
end if
if c> max then max=c
max3=max
end function
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答