add
Purpose
Addition operator +
Description
Finds the sum of the numbers either side of the + operator. The result is the first number increased by the second
Syntax
result = number1 + number2
Arguments
result sum of number1 and number2
number1 first number
number2 second number
Example
answer = "0"
correct = 2 + 2
while int( answer ) != correct loop
answer = input( "What is 2 + 2?", false )
if int( answer ) != correct then
print( "Sorry that is incorrect. Please try again" )
for i = 0 to 200 loop
update()
repeat
endIf
repeat
print( "That is correct!" )
sleep( 3 )
Associated Commands