> 其他 >
急求 1、设计一个判断两个整数大小的VBA子过程. 2、设计一个计算从n~m之间所有自然数之和的VBA函数.
人气:192 ℃ 时间:2020-01-29 15:12:26
解答
sub 大小(byval A% ,byval B%)
if A>B then msgbox A & ">" & B
if A=B then msgbox A & "=" & B
if AN then i=M :M=N:N=i
for i= M to N
n_m之间自然数和=n_m之间自然数和+i
next
end function
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版