import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
  static void Multiply (int n,int p){
 //int p=1;
  if (p>10)
  { return;
  }
     Multiply (n,p+1);
    int h = n*p;
 
 
    System.out.println(h);

} 
    public static void main(String[] args) {
        System.out.println("Hello world!");
   
     Multiply (6,1);
   
   
   
   
   
   
    }
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: