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