import java.util.Scanner;
public class dabin {
public static void main( String[] args )
{
Scanner sc = new Scanner(System.in);
System.out.println("请输入数字");
int b = sc.nextInt();
int a=b-1;
for (int x=0;x<=a ;x++ )
{
for (int y=0;y<=x ;y++ )
{
System.out.print(y);
}
if (x<a)
{
for (int z=x;z<a ;z++ )
{
System.out.print(x);
}
}
System.out.println();
}
}
}
|