Integer comparison: Difference between revisions

Content added Content deleted
(Add BCPL)
Line 837: Line 837:
if (a == b) print "a is equal to b\n"
if (a == b) print "a is equal to b\n"
quit</syntaxhighlight>
quit</syntaxhighlight>

=={{header|BCPL}}==
<syntaxhighlight lang="bcpl">get "libhdr"

let start() be
$( let a = ? and b = ?
writes("A? ") ; a := readn()
writes("B? ") ; b := readn()
writes(
a < b -> "A is less than B*N",
a = b -> "A is equal to B*N",
a > b -> "A is greater than B*N",
"Huh?!"
)
$)</syntaxhighlight>


=={{header|Befunge}}==
=={{header|Befunge}}==