From f68ce71f75869c1eb7a2e883e851f8f98b647332 Mon Sep 17 00:00:00 2001 From: henrimmo Date: Thu, 21 Jan 2016 19:40:06 +0200 Subject: [PATCH 1/2] Eka palautus --- koodi.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koodi.rb b/koodi.rb index 932f2b3..7081b72 100644 --- a/koodi.rb +++ b/koodi.rb @@ -1 +1,4 @@ -# kirjoita koodi tänne + +def summa(luku1 luku2) + return luku1 + luku2 +end From 650c6e13a31630a913add67e860b0664960f9d71 Mon Sep 17 00:00:00 2001 From: henrimmo Date: Thu, 21 Jan 2016 19:42:31 +0200 Subject: [PATCH 2/2] Eka palautus --- koodi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koodi.rb b/koodi.rb index 7081b72..d413988 100644 --- a/koodi.rb +++ b/koodi.rb @@ -1,4 +1,4 @@ -def summa(luku1 luku2) +def summa(luku1, luku2) return luku1 + luku2 end