Anonymous user
A+B: Difference between revisions
m
Moved SmallBASIC example to BASIC subsection
imported>Brie (Add Nu) |
imported>J7M m (Moved SmallBASIC example to BASIC subsection) |
||
Line 1,590:
50 GOTO 30
60 PRINT VAL A$( TO I-1)+VAL A$(I+1 TO )</syntaxhighlight>
==={{header|SmallBASIC}}===▼
<syntaxhighlight lang="SmallBASIC">▼
input "Enter number A: "; a▼
input "Enter number B: "; b▼
print "A + B = "; a + b▼
</syntaxhighlight>▼
==={{Header|Tiny BASIC}}===
Line 5,256 ⟶ 5,263:
END;
END.
▲</syntaxhighlight>
▲=={{header|SmallBASIC}}==
▲<syntaxhighlight lang="SmallBASIC">
▲input "Enter number A: "; a
▲input "Enter number B: "; b
▲print "A + B = "; a + b
</syntaxhighlight>
|