int max=x;
int min=1;
int j=max;
int b=0;
for (int i=min;i<=x;i++)
{
while (j>=min)
{ System.out.print(1);
j=j-x;
}
for (int k=min+1;k<=max;k++)
System.out.print(k);
System.out.println("");
for (int a=x; a<b;a++)
{
System.out.print(" ");
}
j=max-1;
max=max-1;
b=b+1;
Tidak ada komentar:
Posting Komentar