mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
26a72e347d
2100-2199
18 lines
294 B
C++
18 lines
294 B
C++
#include<stdio.h>
|
|
int main()
|
|
{
|
|
int n,i,j,a;
|
|
scanf("%d",&n);
|
|
while(n--)
|
|
{
|
|
scanf("%d",&a);
|
|
for(i=1;i<=a;i++)
|
|
{
|
|
for(j=1;j<a;j++)
|
|
printf("%d ",i*j);
|
|
printf("%d\n",i*a);
|
|
}
|
|
}
|
|
return 0;
|
|
}
|