Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: patu90da/iOSStudyGroup
base: a25037542c
...
head fork: patu90da/iOSStudyGroup
compare: 5c97fe04e4
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Jun 23, 2012
Suzuki Shuichiro add div 6b755e6
Yuki Okubo Merged. 5c97fe0
Showing with 7 additions and 1 deletion.
  1. +7 −1 calc.rb
View
8 calc.rb
@@ -6,7 +6,13 @@
when '*'
p ARGV[0], ARGV[1], ARGV[3]
when '/'
- p ARGV[0], ARGV[1], ARGV[3]
+ div(ARGV[1], ARGV[3])
else
exit
end
+
+def div( op1, op2 )
+ return op1/op2
+end
+
+p div(10,4)

No commit comments for this range

Something went wrong with that request. Please try again.