Created
December 16, 2018 21:18
-
-
Save shamritskiy3468/961750b5d297378132e9edb7b242d730 to your computer and use it in GitHub Desktop.
Task6
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
array = [] | |
rand(20..30).times { array << rand(0..40)} | |
puts "Original array #{ array.join(" ") }" | |
puts "Result array #{ array.sort.join(" ") }" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🥇