answersLogoWhite

0

dim a,b,c

a=cint(inputbox("enter value for a"))

b=cint(inputbox("enter value for b"))

c=cint(inputbox("enter value for c"))

if((a>b)and(a>c)) then

msgbox "greatest number is a="&a

else if ((b>a)and(b>c)) then

msgbox "greatest number is b="&b

else

msgbox "greatest number is c="&c

end if

end if

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
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 numbers using vb script?
Write your answer...
Submit
Still have questions?
magnify glass
imp