Added problem 40
puts to printf