a function that takes an integer array as an argument and
returns the largest value in the array. Use the function in
a program
Answer / abd al-ala camara
<?php
// define function largest()
function largest($numbers) {
foreach ($numbers as $temp) {
$largestNumber = max($numbers);
}
return $largestNumber;
} // end function
$numbers = array(3, 45, 2, 56, 7, 9, 78, 23, 63);
echo largest($numbers); // if you want you can echo or just
use it another function or programe
?>
| Is This Answer Correct ? | 0 Yes | 0 No |
I have string like hp company.print tis like company hp.write a program in vbscripting
Inorder to avoid Message box while writing script which alternative method can be used?
what do you mean .ota mobile format
Which date function is used in the vbscript language to find the difference between the 2 dates?
Explain the filter expression?
Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?
Write a program using Java Script / VBscipt that checks if two matrices have identical values in all the elements
How will you check that a variable is an array in vbscript?
How to add actions in driver script to run those actions in QTP?
how to declare a variable in vbscript using vbscript
about vb scripting programs this type of all question& answers
how to acces the remote mechine using vb cript(QTP)