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

FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
ReneRene
Change my mind. I dare you.
Chat with Rene

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