2
a = "+2"; b = 2; c = "+2a"; d = "+2 "; e = " 2"
5
if (b == a) print "\"" a "\"" " compares as a number"
6
else print "\"" a "\"" " compares as a string"
9
if (b == c) print "\"" c "\"" " compares as a number"
10
else print "\"" c "\"" " compares as a string"
13
if (b == d) print "\"" d "\"" " compares as a number"
14
else print "\"" d "\"" " compares as a string"
17
if (b == e) print "\"" e "\"" " compares as a number"
18
else print "\"" e "\"" " compares as a string"
21
print "after addition"
24
if (b == a) print "\"" a "\"" " compares as a number"
25
else print "\"" a "\"" " compares as a string"
28
if (b == c) print "\"" c "\"" " compares as a number"
29
else print "\"" c "\"" " compares as a string"
32
if (b == d) print "\"" d "\"" " compares as a number"
33
else print "\"" d "\"" " compares as a string"
36
if (b == e) print "\"" e "\"" " compares as a number"
37
else print "\"" e "\"" " compares as a string"
40
if ("3e5" > "5") print "\"3e5\" > \"5\""
41
else print "\"3e5\" <= \"5\""
59
if ( 1000000 "" == 1000001 "") print "match"