how to multiply a number by itself using for loop in java

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

Also in Java: