Integer comparison: Difference between revisions

Content added Content deleted
(Added BASIC example.)
m (Removed extra newlines.)
Line 90: Line 90:
Then, execute the function for better control:
Then, execute the function for better control:
(compare-integers)
(compare-integers)



=={{header|C}}==
=={{header|C}}==
Line 344: Line 343:
?>
?>
Note that this works from the command-line interface only, whereas [http://www.php.net PHP] is usually executed as [http://en.wikipedia.org/wiki/Common_Gateway_Interface CGI].
Note that this works from the command-line interface only, whereas [http://www.php.net PHP] is usually executed as [http://en.wikipedia.org/wiki/Common_Gateway_Interface CGI].



=={{header|Pop11}}==
=={{header|Pop11}}==
Line 391: Line 389:
=={{header|Standard ML}}==
=={{header|Standard ML}}==
{{incorrect|Standard ML}}
{{incorrect|Standard ML}}

fun compare_integers(a, b) =
fun compare_integers(a, b) =
if a < b then print "A is less than B\n"
if a < b then print "A is less than B\n"