Alternative Square Pattern Problem Code: SQALPAT

Output is correct but after submission its showing wrong answer.
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int n=1;
if(a>=1 && a<=200)
{
for(int i=0;i<a;i++)
{
for(int j=0;j<5;j++)
System.out.print(n++ +" ");
System.out.println();
}

It isn’t altering