Dim a As Integer,b As Integer,c As Integer
If a > b then
max = a
else
max = b
End If
If c > max then
max = c
End If
Print max
本文提供了一个简单的VBScript示例程序,用于找出三个整数中的最大值。通过条件判断语句实现逻辑控制,适用于初学者了解基本的流程控制结构。
Dim a As Integer,b As Integer,c As Integer
If a > b then
max = a
else
max = b
End If
If c > max then
max = c
End If
Print max
1276
4962
314
2990

被折叠的 条评论
为什么被折叠?
