From 6be84ed1c295cf94caed6126dfad79ffd79b7031 Mon Sep 17 00:00:00 2001 From: rukia Date: Tue, 16 May 2023 00:32:31 +0300 Subject: [PATCH 1/2] running ruby --- app.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app.rb b/app.rb index a6794e05..818f10ed 100644 --- a/app.rb +++ b/app.rb @@ -14,10 +14,7 @@ # # 1 + 1 # puts add + add -def add num1, num2 - puts num1 - puts num2 - num1 + num2 -end +puts "Hello World!" -puts add(1,3) + add(2,2) \ No newline at end of file +print "Pass this test, please." +p [1,2,3] \ No newline at end of file From 8a9c009ecbdbd7fd08f8b434b55ea5d9127254c5 Mon Sep 17 00:00:00 2001 From: rukia Date: Tue, 16 May 2023 10:16:32 +0300 Subject: [PATCH 2/2] running ruby code --- app.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app.rb b/app.rb index 818f10ed..7f02ea2c 100644 --- a/app.rb +++ b/app.rb @@ -17,4 +17,11 @@ puts "Hello World!" print "Pass this test, please." -p [1,2,3] \ No newline at end of file +p [1,2,3] + +def add num1,num2 + puts num1 + puts num2 + num1 + num2 +end +puts add(1,3) + add(2,2) \ No newline at end of file