Skip to content

Commit

Permalink
Changed output style, from concatenating a string, to the preferred
Browse files Browse the repository at this point in the history
method of embedding a variable inline
  • Loading branch information
fahadsadah committed Jan 24, 2010
1 parent 7289bb7 commit d3e65a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 11.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@
end
end
end
print "biggestprod is " + biggestprod.to_s + "\n"
print "biggestprod is #{biggestprod}\n"
2 changes: 1 addition & 1 deletion 8.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
prod = number[x].to_i * number[x+1].to_i * number[x+2].to_i * number[x+3].to_i * number[x+4].to_i
biggestprod = prod if prod > biggestprod
end
print "biggestprod is " + biggestprod.to_s + "\n"
print "biggestprod is #{biggestprod}\n"

0 comments on commit d3e65a1

Please sign in to comment.