fork download
  1. begin
  2. puts("The Ruby Multiply Program.")
  3. $global_variable1 = 25
  4. $global_variable2 = 25
  5. $global_variable3 = ($global_variable1 * $global_variable2)
  6. puts "NUM1 #$global_variable1 NUM2 #$global_variable2 NUM3 #$global_variable3"
  7. end
Success #stdin #stdout 0.01s 8072KB
stdin
1
2
10
42
11
stdout
The Ruby Multiply Program.
NUM1 25 NUM2 25 NUM3 625