# VBScript Addition Problems?

Hello I Have a Addition Problem In VBScript.

If i use 2 Inputboxes to get to numbers (Lets say 3 and 5), there both numeric (isNumeric return "True"), but when i add them (c=a+b) and then msgbox 'c' it comes up '35' not 8. PLEASE HELP ME

If i use 2 Inputboxes to get to numbers (Lets say 3 and 5), there both numeric (isNumeric return "True"), but when i add them (c=a+b) and then msgbox 'c' it comes up '35' not 8. PLEASE HELP ME

active| newest | oldestThis makes sure that you're adding integers, not strings.

Declare your variables!

x=inputbox("enter the first number")

y=inputbox("enter the second number")

x=x*1

y=y*1

answer=x + y

x and y are the input number variables change the name to whatever, the "x=x*1" and "y=y*1" will always turn a number in a string of numbers into a pure number. Hopidy Helpidy