Quick actions

cmd+k|ctrl+k

Navigation

Languages

Lists

Snippet info

Language

Ruby

Visibility

public

Author

theatravisty

Created

2016-09-28T22:00:49Z

Updated

2016-09-29T21:58:26Z

list = 1, 3, 4, 8, 9, 7, 6, 5, 2, 0

list1 = 1, 2, 3, 4, 5, 6, 7, 8, 9, 0

list.each_with_index do |list, index|
    index += 1
    puts "The #{index} number in the list is #{list}"
    
end
    puts "The order of the list is #{list}"
    puts "The right order is #{list.sort}"
    
    puts "\n"
    
list.each do |list| list1.each do |list1|    
    puts "#{(list) + (list1)}"
end
end
INFO