Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The output of task1a is:

 

And the output of writing to a file:

Image Added

is:

Image Added

Task 2: Functions

The second task in this project was to investigate functions in Ruby.  Functions in Ruby do not need to have return types.  Unlike functions in C and Java, their return types are not given with the function declaration so functions can return nothing or more than one type:

...