My issue
i cant solve this problem
My code
#include <stdio.h>
int main()
{
int T,N,t;
scanf("%d",&T);
while(t--)
{
scanf("%d",&N);
int value=1;
for(int i=0;i<N;i++)
{
for(int j=0;j<N;j++)
{
printf("%d ",value++);
}
printf("\n");
}
if(t!=T-1)
{
printf("\n");
}
}
return 0;
}
Problem Link: Print Pattern Practice Coding Problem