RubyGems Navigation menu

tg_fibonacci 1.0.2

# TG Fibonacci [![Build Status](https://travis-ci.com/tacoda/tg_fibonacci.svg?branch=master)](https://travis-ci.com/tacoda/tg_fibonacci) ## Problem Enter a number and have the program generate the Fibonacci sequence to that number or to the `n`th number. ## Installation Install using RubyGems. ```sh gem install tg_fibonacci ``` ## Usage Provide a `help` argument to get CLI program help. ```sh $ tg_fib help tg_fib Compute fibonacci numbers Usage: tg_fib help Show this help menu tg_fib [number] Compute the fibonacci number tg_fib Enter interactive mode ``` Provide a non-negative integer to compute the fibonacci sequence for that number. ```sh $ tg_fib 5 fib(5) = 1, 1, 2, 3, 5, 8 ``` Provide no arguments to enter interactive mode. ```sh $ tg_fib Please enter a non-negative integer: (h)elp, (q)uit > 5 fib(5) = 1, 1, 2, 3, 5, 8 Please enter a non-negative integer: (h)elp, (q)uit > 3 fib(3) = 1, 1, 2, 3 > help Interactive help: Commands: (h)elp Show this help menu (q)uit Quit the program Usage: Enter a non-negative integer to compute that fibonacci number. Example: > 5 # => fib(5) = 1, 1, 2, 3, 5, 8 Please enter a non-negative integer: (h)elp, (q)uit > quit ```

Gemfile:
= Copy to clipboard Copied!

instalar:
=

Versões:

  1. 1.0.4 - May 09, 2020 (7 KB)
  2. 1.0.3 - April 25, 2020 (6,5 KB)
  3. 1.0.2 - April 25, 2020 (6 KB)
  4. 1.0.1 - April 25, 2020 (5,5 KB)
  5. 1.0.0 - April 25, 2020 (5,5 KB)

Development Dependencies (1):

rspec >= 0

Donos:

Pushed by:

Autores:

  • Ian Johnson

SHA 256 checksum:

53ae0ab75b910681b62088d8fd1fe5cd99ed5e697256b6e61f29e74c5ced4226

Total de downloads 7.217

Desta versão 1.342

Licença:

MIT

Versão Requerida do Ruby: >= 1.9

Links: