java multiply code example
Example 1: how multiply java
int x = 12;
int y = 13;
int z = x * y;
Example 2: Write a method multiply() in a class Arithmetic
int x = 12;int y = 13;int z = x * y;System.out.println("Multiplication: " + z);
Example 3: how to multiply a number by itself using for loop in java
int originalNumber = 1;
for (int multiple = originalNumber; multiple <= 10000; multiple += originalNumber) {
// Use multiple however you want to
}