You are on page 1of 1

/* AQUI NO MOLESTAR COMPILADOR DE RUBY VERSION 0.

000001 */ class persona int : id3,id4 string : juan ; float : a ; def initialize ( a , b ) puts "ese con" juan = "juan id3 = id4 while(2>1) a=a+1; yuyin="yuyin end return 0 end def sumar ( vacio ) for id3 in (1 .. 5) id4 = id1 + id2 end return id4 end end #NUEVA def pi(trials) hits = 0 for i in 0 ... trials x = RandomNumberGenerator y = RandomNumberGenerator if x * x + y * y < 1.0 hits += 1 end end return 4.0 * hits / trials end begin { while(2>1) sum+=sum+1; end } end

You might also like