Multiplication table of given no. in java ( loop statement for)

 If else Example

import java.util.*;
public class pattern{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter value:\t");
int a = sc.nextInt();
for ( int i = 1; i<=10; i++)
{
System.out.println( a*i);
}
}
}
Enter value:
5
5
10
15
20
25
30
35
40
45
50