Added: Brackets to single-line if statements (no functionality change)
Updated: Changed if to else if statements (no functionality change)
Fixed: Now skips output when -1 is entered prior to entering any numbers
Note: number can't be replaced by finalNumber without then giving
incorrect output