Created
December 23, 2014 14:55
-
-
Save shirayuca/bc48452d83c2c8e9ddcf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 関数の考え方 | |
def kakezan(x, y) | |
puts x * y | |
end | |
a = 2 | |
b = 3 | |
kakezan(a, b) | |
array = [1,2,3,4,5,6,7,8,9] | |
array.each do |number| | |
kakezan(2, number) | |
end | |
### Googleスプレッドシートの例 | |
# def KAKEZAN(x, y) | |
# return x * y | |
# end | |
# =KAKEZAN(A1,B1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment