Kod: Zaznacz cały
j = 0
j = j::Int32
z1 = Array(Float64, 1)
z2 = Array(Float64, 1)
z1 = rand(1)
z2 = rand(1)
x1 = z1[1]
x2 = z2[1]
x1 = x1::Float64
x2 = x2::Float64
while true
print(j, "~.^^")
z1 = rand(1)
z2 = rand(1)
x1 = z1[1]
x2 = z2[1]
if(x1<x2)
j += j + x1 + x2
else
j -= j + x1 + x2
end
end