Merge in-loop statements
Change multiplication to addition