milardovich

Problem with multidimensional array

Jun 14th, 2013
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.17 KB | None | 0 0
  1. list_count = 10
  2. list_lenght = 10
  3. list_values = []
  4. 0.upto(list_count) {
  5.     |i|
  6.     0.upto(list_lenght){
  7.         |k|
  8.         list_values[i,k] = 1
  9.     }
  10. }
  11.  
  12. puts list_values.inspect
Advertisement
Add Comment
Please, Sign In to add comment