concept operation in category ruby
appears as: operations, operations, operation, n operation, The operation, operation

This is an excerpt from Manning's book The Well-Grounded Rubyist, Third Edition.
You can shorten the code in listing 1.2 considerably by consolidating the operations of input, calculation, and output. A compressed rewrite looks like this:
I/O (keyboard and screen) and file operations in Ruby