-
-
Save svracak/1908319 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
### Napišite program koji ce ispisivati string od 10 slova i 5 znamenki | |
### i to svaki put u drukcijem rasporedu | |
puts "DesetSlova12345".split(//).shuffle.join | |
### Napišite program koji ce ispisati brojeve od 1 do 10, svaki u svom redu | |
[1,2,3,4,5,6,7,8,9,10].each do |element| | |
puts element | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(["a","b","c","d","e","f","g","h","i","j","1","2","3","4","5"].each {|x| puts x}).shuffle.join
[1,2,3,4,5,6,7,8,9,10].each {|x| puts x}