You don't need to change originalNumber at all - just multiply i by originalNumber: int originalNumber = 1; for (int i = 1; i <= 10000; i++) { int multiple = originalNumber * i;