answersLogoWhite

0

option explicit

Dim vnum1,vnum2,vnum3

vnum1=cint(inputbox("enter the first number"))

vnum2=cint(inputbox("enter the second number"))

vnum3=cint(inputbox("enter the third number"))

if (vnum1>vnum2 AND vnum1>vnum3) then

msgbox vnum1 &" is greater"

else if (vnum2>vnum1 AND vnum2>vnum3) then

msgbox vnum2 &" is greater"

else if vnum3>vnum2 AND vnum3>vnum1 then

msgbox vnum3 &" is greater"

else

msgbox "They all equal"

end if

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
BeauBeau
You're doing better than you think!
Chat with Beau
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa

Add your answer:

Earn +20 pts
Q: How do you find the greatest of three number using vbscript?
Write your answer...
Submit
Still have questions?
magnify glass
imp