From 4dd1867f4b1cd63640259f5fb8fc4f00000e5371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ender=20KU=C5=9E?= Date: Thu, 2 May 2024 11:10:52 +0300 Subject: [PATCH 1/2] Update puts-example.rb --- puts-example.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/puts-example.rb b/puts-example.rb index c315d6c..5dcd43d 100644 --- a/puts-example.rb +++ b/puts-example.rb @@ -1,2 +1,7 @@ puts("hello Ruby!") puts(4-1) + +# Ruby programlama dilinde parantezleri kullanip kullanmamaniz bir sorun olusturmaz ustteki ciktilari asagidaki gibi de alabilirsiniz + +puts "hello Ruby!" +puts 4-1 From c648e72c446ff37282b8b2aed13fae2f66a4ece6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ender=20KU=C5=9E?= Date: Thu, 2 May 2024 11:17:14 +0300 Subject: [PATCH 2/2] Ruby string_interpolation.rb example --- string_interpolation.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 string_interpolation.rb diff --git a/string_interpolation.rb b/string_interpolation.rb new file mode 100644 index 0000000..14d3b00 --- /dev/null +++ b/string_interpolation.rb @@ -0,0 +1,10 @@ +name = "Ruby" +release_date = 1992 + +puts "Hello #{name}" # => Hello Ruby + +puts "The #{name} programming language was released in #{release_date}." # => The Ruby programming language was released in 1995. + +# Dikkatli olun " (Cift tirnak) ile ' (Tek tirnak) farkli sonuclar cikarir. + +puts 'The #{name} programming language was released in #{release_date}.' # => The #{name} programming language was released in #{release_date}.