cleaned up output

master
Jeff Yates 2020-12-02 10:29:36 -05:00
parent a28408d4d2
commit 39c3269366
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ numbers = File.readlines('./input')
numbers.each do |num1|
numbers.each do |num2|
sum = num1.to_i + num2.to_i
puts num1 + '+' + num2 + '=' + sum.to_s
puts num1.strip + '+' + num2.strip + '=' + sum.to_s
if sum == 2020
puts num1.to_i * num2.to_i
exit