velious

04-07-2004, 06:05 PM

can someone tell me whats wrong with this code? :o

when i type two numbers to be added, it just puts the numbers together, like 12+12 = 1212. I dont understand whats wrong here:

dim a, b, answer

a = inputbox ("What is the first number? ")

b = inputbox ("What is the second number? ")

answer = a+b

msgbox ("The sum is " & answer )

when i type two numbers to be added, it just puts the numbers together, like 12+12 = 1212. I dont understand whats wrong here:

dim a, b, answer

a = inputbox ("What is the first number? ")

b = inputbox ("What is the second number? ")

answer = a+b

msgbox ("The sum is " & answer )