user
Refactor the following code fragment to square a number without using multiplication.
Input: int result = number * number;
Output:
assistant
int result = number + number + (number - number) + (number - number);