fork download
  1. begin
  2. $global_variable = 25
  3. $global_variable1 = 25
  4. $global_variable2 = ($global_variable * $global_variable1)
  5. puts "X",$global_variable
  6. puts "Y",$global_variable1
  7. puts "Z",$global_variable2
  8. end
Success #stdin #stdout 0.01s 8072KB
stdin
1
2
10
42
11
stdout
X
25
Y
25
Z
625