Asp.NET,PHP,JAVA,JavaScript & HTML Questions and Answers
You can write your records by the help of this blog...
Pages
Home
ASP.NET
PHP
HTML
JavaScript
JAVA
HTML Tags
Thursday, 11 February 2016
Largest in an array
Code:
<!DOCTYPE html>
<html>
<body>
<center>
<h1>Largest in an array</h1>
<?php
$numbers = array(10,23,54,32,51,61,43,52,90,49);
print_r($numbers);
echo "<h3>Largest number is ";
echo max($numbers);
echo "</h3>";
?>
</center>
</body>
</html>
O
ut
p
ut:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment