Subject: PHP

Find Largest Number in Array Using While Loop

Create an array $arr = [1, 3, 2, 8, 5].

Use a while loop to find and print the largest number in the array.

Select file or drag and drop

PNG, JPG, SVG

Preview