DeveloperBreeze

Generate the Fibonacci series

$n = 10;
$a = 0;
$b = 1;
echo $a . ' ' . $b . ' ';
for ($i = 2; $i < $n; $i++) {
    $c = $a + $b;
    echo $c . ' ';
    $a = $b;
    $b = $c;
}

Continue Reading

Discover more amazing content handpicked just for you

Tutorial
javascript

Variables and Constants

     let age = 25;
     age = 26; // Allowed
     console.log(age); // 26
  • Used for variables whose value should not change.
  • Example:

Dec 10, 2024
Read More
Code
javascript

JavaScript Prime Number Check

No preview available for this content.

Jan 26, 2024
Read More

Discussion 0

Please sign in to join the discussion.

No comments yet. Start the discussion!