# File lib/modai_prct12/matrizDensa.rb, line 12 def to_s fil = 0 print "[" while fil < filas col = 0 while col < columnas print "#{matriz[fil][col].to_s}" if (col + 1) < columnas then print ", " end col += 1 end if (fil + 1) < filas then print ", " end fil += 1 end print "]" end