rala_shearim2

arr = %w(א ב ג ד ה ו ז ח ט י כ ל מ נ ס ע פ צ ק ר ש ת) count = 0 arr.each do |x| arr.each do |y| if arr.index(x) >= arr.index(y) next end print x+y+ " " count +=1 end puts "\n\n" end puts "We have #{count} Shearim."
joli rala shearim avec une boucle dans une boucle

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.