What is the Java program to print the following pattern 1 234 56789 101112 13?
import java.io.*;class pattern{void main() throws IOException{int i,j;BufferedReader br=new BufferedReader(new InputStreamReader(System.in));System.out.print("Enter n terms");i=Integer.parseInt(br.readLine());for(i=1;i