cara mengalikan angka dengan sendirinya menggunakan untuk loop di java

int originalNumber = 1;
for (int multiple = originalNumber; multiple <= 10000; multiple += originalNumber) {
    // Use multiple however you want to
}
Fragile Ferret