
Hi,
Can any one please share a code to print the below:
1 23 456 78910
thanks a lot in advance..

Here is a code that displays the following pattern:
public class Pattern{
public static void main(String[] args) throws Exception{
int k = 1;
for(int i=1; i<= 4 ;i++){
for(int j=1; j <= i ; j++){
System.out.print(k+" ");
k = k + 1;
}
System.out.println();
}
}
}