Skip to content

Basic Rust CLI utility that calculates the nth number of the Fibonacci sequence.

License

Notifications You must be signed in to change notification settings

egriff89/rusty-fibonacci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rusty-fibonacci

Basic Rust CLI utility that calculates the nth number of the Fibonacci sequence.

Installation

git clone https://github.com/egriff89/rusty-fibonacci.git
cd rusty-fibonacci
cargo install --path .

Running

$ fibonacci -h
Quickly calculate the Nth number of the Fibonacci sequence.

Usage: fibonacci [OPTIONS]

Options:
  -n, --number <NUMBER>  [default: 0]
  -h, --help             Print help

$ fibonacci
0
$ fibonacci -n 10
55
$ fibonacci -n 100
354,224,848,179,261,915,075
$ fibonacci -n 1000
43,466,557,686,937,456,435,688,527,675,040,625,802,564,660,517,371,780,402,481,729,089,536,555,417,949,051,890,403,879,840,079,255,169,295,922,593,080,322,634,775,209,689,623,239,873,322,471,161,642,996,440,906,533,187,938,298,969,649,928,516,003,704,476,137,795,166,849,228,875

About

Basic Rust CLI utility that calculates the nth number of the Fibonacci sequence.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages