Sha256: 7ea9bef188e2ad7ff94c803f7e1142d90e2b6196a88178ce28a14ac8c4d01dff
Contents?: true
Size: 823 Bytes
Versions: 14
Compression:
Stored size: 823 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 style is different consecutive lines. # 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 return 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 return 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 & 4 rubygems