Given an integer, , print its first multiples. Each multiple (where ) should be printed on a new line in the form: N x i = result.

Input Format

A single integer, .

Constraints

Output Format

Print lines of output; each line (where ) contains the of in the form:
N x i = result.
Expected Output
2 x 1 = 2
2 x 2 = 4
2 x 3 = 6
2 x 4 = 8
2 x 5 = 10
2 x 6 = 12
2 x 7 = 14
2 x 8 = 16
2 x 9 = 18
2 x 10 = 20

Give in a java code with the expected output

Here is a Java code that takes an integer as input and prints its first 10 multiples:

```java
import java.util.Scanner;

public class Multiples {
public static void main(String[] args) {
// Read the input integer
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
sc.close();

// Print the first 10 multiples
for (int i = 1; i <= 10; i++) {
int result = n * i;
System.out.println(n + " x " + i + " = " + result);
}
}
}
```

Expected Output for n = 2:

```
2 x 1 = 2
2 x 2 = 4
2 x 3 = 6
2 x 4 = 8
2 x 5 = 10
2 x 6 = 12
2 x 7 = 14
2 x 8 = 16
2 x 9 = 18
2 x 10 = 20
```

Here is the Java code to print the first 10 multiples of a given integer:

```java
import java.util.Scanner;

public class Multiples {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();

for (int i = 1; i <= 10; i++) {
int result = n * i;
System.out.println(n + " x " + i + " = " + result);
}
}
}
```

Input:
```
2
```

Output:
```
2 x 1 = 2
2 x 2 = 4
2 x 3 = 6
2 x 4 = 8
2 x 5 = 10
2 x 6 = 12
2 x 7 = 14
2 x 8 = 16
2 x 9 = 18
2 x 10 = 20
```

This code takes an integer input (in this case, 2), and then iterates through a loop from 1 to 10. For each iteration, it calculates the multiple of the input integer (`n * i`), and prints it in the required format.

Here is a Java code that solves the given problem:

```java
import java.util.Scanner;

public class PrintMultiples {
public static void main(String[] args) {
// Read the input number from the user
Scanner scanner = new Scanner(System.in);
int number = scanner.nextInt();
scanner.close();

// Print the first 10 multiples
for (int i = 1; i <= 10; i++) {
int result = number * i;
System.out.println(number + " x " + i + " = " + result);
}
}
}
```

This code first reads an integer input from the user using the `Scanner` class. It then uses a `for` loop to iterate from `1` to `10` and calculates the multiple of the input number at each iteration. The result is printed in the required format using `System.out.println()`.

The expected output for the given input `2` is as follows:

```
2 x 1 = 2
2 x 2 = 4
2 x 3 = 6
2 x 4 = 8
2 x 5 = 10
2 x 6 = 12
2 x 7 = 14
2 x 8 = 16
2 x 9 = 18
2 x 10 = 20
```