Help for this page

Select Code to Download


  1. or download this
    a, b = 0, 1
    while b < 50:
        print(a, b)
        a, b = b, a + b
    
  2. or download this
    old_a = a
    a = b
    b = old_a + b
    
  3. or download this
     
    use warnings;
    use 5.18.2;
    ...
        $a = $b;
        $b = $old_a + $b;
    }