Refactor the following code fragment to square a number without using multiplication.
int result = number * number;
One way to refactor the code fragment to square a number without using multiplication is to use addition with a loop. Here's an example implementation in C:

```c
int result = 0;
for (int i = 0; i < number; ++i) {
    result += number;
}
```
Complete the following task based on the instruction and optional input provided.### Instruction:
Refactor the following code fragment to square a number without using multiplication.

### Input:
int result = number * number;

### Output:
One way to refactor the code fragment to square a number without using multiplication is to use addition with a loop. Here's an example implementation in C:

```c
int result = 0;
for (int i = 0; i < number; ++i) {
    result += number;
}
```