fork download
  1. begin
  2. puts ("The Ruby Add/Multiply Program.")
  3. a = 50
  4. b = 50
  5. c = (a + b)
  6. puts("A ,50, B ,50","C ",c)
  7. d = 50
  8. e = 50
  9. f = (d * e)
  10. puts("D ,50, E ,50"," F ",f)
  11. end
Success #stdin #stdout 0.01s 8056KB
stdin
1
2
10
42
11
stdout
The Ruby Add/Multiply Program.
A ,50, B ,50
C 
100
D ,50, E ,50
 F 
2500