You have been tasked with creating a program that runs in the command line (bash). The program should ask for 2 numbers, a mathematical operator, and then execute the operation on the two numbers.
- Can be run using bash (i.e.
ruby yourfile.rb
) - Asks the user to input a number (i.e.
10
) - Asks the user to input another number (i.e.
5
) - Asks the user to input a mathematical operator (i.e.
+
) - Outputs the the result of the computation (i.e.
15.0
)