Integer comparison: Difference between revisions

m
→‎{{Header|Tiny BASIC}}: Works with (Tom Pittman's) TinyBasic.
(Add lang example)
m (→‎{{Header|Tiny BASIC}}: Works with (Tom Pittman's) TinyBasic.)
Line 794:
 
==={{Header|Tiny BASIC}}===
{{works with|TinyBasic}}
<syntaxhighlight lang="tinybasic">PRINT "Enter a number"
Some implementations of Tiny BASIC use <code>,</code> instead of <code>;</code> for concatenation of print items.
INPUT A
<syntaxhighlight lang="tinybasicbasic">PRINT10 "EnterREM aInteger number"comparison
20 PRINT "Enter anothera number"
INPUT B
30 INPUT A
IF A < B THEN PRINT A," is less than ",B
IF A > B THEN40 PRINT A,"Enter is greater thananother number",B
50 INPUT B
IF A = B THEN PRINT A," is equal to ",B</syntaxhighlight>
60 IF A < B THEN PRINT A,;" is less than ",;B
70 IF A > B THEN PRINT A;" is greater than ";B
80 IF A = B THEN PRINT A,;" is equal to ",;B</syntaxhighlight>
90 END</syntaxhighlight>
 
=={{header|Batch File}}==
512

edits