- #1

OrbitalPower

## Main Question or Discussion Point

Say you have a variable x, that is of type int.

x = 1;

I just want to create a while or for loop so that each time it runs it adds another digit to it, such as:

12

123

1234

or 1, 11, 111, 1111, and so on.

x = 1;

I just want to create a while or for loop so that each time it runs it adds another digit to it, such as:

12

123

1234

or 1, 11, 111, 1111, and so on.