Permalink
Browse files

Added base logic.

  • Loading branch information...
Yuki Okubo Yuki Okubo
Yuki Okubo authored and Yuki Okubo committed Jun 23, 2012
1 parent 32560b1 commit a25037542c1170d92c814df6299e4f5fb8ffbcce
Showing with 12 additions and 0 deletions.
  1. +12 −0 calc.rb
View
12 calc.rb
@@ -0,0 +1,12 @@
+case ARGV[3]
+when '+'
+ p ARGV[0], ARGV[1], ARGV[3]
+when '-'
+ p ARGV[0], ARGV[1], ARGV[3]
+when '*'
+ p ARGV[0], ARGV[1], ARGV[3]
+when '/'
+ p ARGV[0], ARGV[1], ARGV[3]
+else
+ exit
+end

0 comments on commit a250375

Please sign in to comment.