Subject: PHP

Fibonacci Sequence with a For Loop

Create a for loop to print the first 10 numbers in the Fibonacci sequence (i.e., 0, 1, 1, 2, 3, 5, 8, 13, 21, 34).

Select file or drag and drop

PNG, JPG, SVG

Preview