This is the code to look for in maximum 3, but I want the code to find the maximum 5 amoung: As suggested by David, keep your values in the list This is easier than uncompressing different variables and requests Can be extended to many values (up to millions of values). If you have different variables for some reason To do this, then do this: integer like oval, a, b, c, like a = input box ("enter number 1") = input box ("enter second number") c = input box ("enter number." ) If A & gt; B then if A & gt; If the MSBBX ("A Greater") is MSBBC ("C is Big" then MSBBC ("B Greater") is the MSBB box ("C is Greater") and end if
Integer as a dim max = a dim name string = "A" if B> max then max = b name = "b" end If if C> max is max = c name = "c" end if d> max then maximum = d name = "D" end if MsgBox (name and "big") ...
No comments:
Post a Comment