Sha256: e7e3f5c718828aae1653718dabcb643e8ceaa0919526b34a8c02faa6292b81fe
Contents?: true
Size: 737 Bytes
Versions: 14
Compression:
Stored size: 737 Bytes
Contents
gcd.rb:4 def gcd(a, b) # # ******************************************************** # # This tests the 'linetrace' command. # # ******************************************************** # set basename on basename is on. # set linetrace on line tracing is on. # continue Tracing(1):gcd.rb:18 gcd(3,5) Tracing(1):gcd.rb:6 if a > b Tracing(1):gcd.rb:10 return nil if a <= 0 Tracing(1):gcd.rb:12 if a == 1 or b-a == 0 Tracing(1):gcd.rb:15 gcd(b-a, a) Tracing(1):gcd.rb:6 if a > b Tracing(1):gcd.rb:10 return nil if a <= 0 Tracing(1):gcd.rb:12 if a == 1 or b-a == 0 Tracing(1):gcd.rb:15 gcd(b-a, a) Tracing(1):gcd.rb:6 if a > b Tracing(1):gcd.rb:10 return nil if a <= 0 Tracing(1):gcd.rb:12 if a == 1 or b-a == 0 Tracing(1):gcd.rb:13 return a
Version data entries
14 entries across 14 versions & 1 rubygems