##### Online FREE BASIC Compiler

Dim x as Integer = 20 DIM y as Integer = 40 DIM z as Integer z = x + y print "Sum of x + y = "; z

Output Results

Sum of x + y = 60

Dim x as Integer = 20 DIM y as Integer = 40 DIM z as Integer z = x + y print "Sum of x + y = "; z

Output Results

Sum of x + y = 60