1int i,k;
2 Scanner sc = new Scanner(System.in);
3 System.out.println("Enter the Number for the table: ");
4
5 int n = sc.nextInt();
6 for (i=1;i<=10;i++){
7 k = n * i;
8 //n + "*" + c + " = " + (n*c))
9 System.out.println(n + "*"+ i + " = " + k);
10 }