#include <stdio.h>
int main()
{
int n = 5; //limit
int x=1,m;
int i,j;
for (i = 1; i <= n; i++)
{
m=1;
for (j = 1; j <= x; j++)
{
printf("%d ",x*m);
m++;
}
if(i<=n/2)
x++;
else
x--;
printf("\n");
}
return 0;
}