Posts by João Gabriel • 19 points
2 posts
-
0
votes1
answer31
viewsQ: Error comparing Array in IF
This is my code v3 = [] w=j=k=0 puts "Digite o tamanho do vetor 1" m = gets.to_i v1 = Array.new(m) puts "Digite o tamanho do vetor 2" n = gets.to_i v2 = Array.new(m) for i in 0..m-1 puts "Digite os…
rubyasked João Gabriel 19 -
-2
votes2
answers555
viewsQ: How to use for in Ruby?
I can’t use the for equal use in the Java. I am trying to find out if a die is addicted. An honest casino owner launched it n times, given the n Launch results, determine the number of occurrences…