(很急的)编写一个三个数中最大值max和最小值min的过程
问题描述:
(很急的)编写一个三个数中最大值max和最小值min的过程
编写一个三个数中最大值max和最小值min的过程,然后用这个过程分别求3个数和5个数,7个数中的最大值和最小值.
答
Private Function Ma(n1 As Double,n2 As Double,n3 As Double) As DoubleMa = IIf(n1 > n2,n1,n2)Ma = IIf(Ma > n3,Ma,n3)End FunctionPrivate Function Mi(n1 As Double,n2 As Double,n3 As Double) As DoubleMi =...