01_fib/

directory
v0.0.0-...-cf576ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2020 License: Apache-2.0

README

Lab 1 - Fibonacci

  • Create an executable go program in directory 01_fib/USERNAME
  • Write a function that prints the first n Fibonacci numbers
func fib(n int)

Call fib(7) in main to print

1
1
2
3
5
8
13

Bonus points: For negative n print Negafibonacci numbers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL