1234

Solution-18

public class Solution19 {

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

}

}

No comments:

Post a Comment