I decided to write some algorithms in Ruby to gain experience π.
- 2 Algorithms.
- 4 Algorithms.
- 8 Algorithms.
Completed Algorithms: 4
My first algorithm in Ruby.
It takes the user input and shows that in this format:
"Hello World, #{text}."
Returns the sum of all odd Fibonacci numbers up to and including the passed number if it is a Fibonacci number. As an example, passing 4 to the function should returns 5 because all the odd Fibonacci numbers under 4 are 1, 1, and 3.
Returns the factorial of the provided integer.
Converts the characters &, <, >, " (double quote), and ' (apostrophe), in a string to their corresponding HTML entities.