import java.util.*;
import java.lang.*;
import java.io.*;
// The main method must be in a class named "Main".
class Main {
static void table (int j){
for (int i =1;i<=10 ; i++)
{
int k = i * j;
System.out.println(k);
}
}
public static void main(String[] args) {
System.out.println("multiplication by method ");
table (8);
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: