1234

Solution-12

public class Solution12 {

public static void main(String[] args) {
int i,j;
for( i=1;i<=4;i++)
{
for( j=i;j<=i+4;j++)
{
System.out.print(j);
}
System.out.println("");
}

}

}

No comments:

Post a Comment