What is wrong with this...
mob/verb
Add()
number1 = input("What is the first number you want to add?") as num
number2 = input("What is the second number you want to add?") as num
number1 += number2 == addresult
alert("Your result is [addresult].")
var
number1
number2
addresult
When I input two numbers to add it just gives me a period.
Thanks,
Punkrock546
ID:177088
Nov 7 2002, 3:19 am
|
|
In response to AbyssDragon
|
|
== is the comparison operator. = is the assignment operator.
|
In response to AbyssDragon
|
|
Thanks.
Punkrock546 |
It should be
addresult = number + number2
In your original code, no changes were made to addresult, so it stayed as null.
-AbyssDragon