import java.util.Random;


public class Ccore {

    
    public static void main(String[] args) {
        for(int i=1;i<=9;i++){
            for(int j=1;j<=i;j++){
                System.out.print(+i+"*"+j+"="+i*+j+"\t");
            }
            System.out.println();
        }
        Random x=new Random();//(一)
        int y=x.nextInt(10);
        System.out.println("输入的随机数为:"+y);//灵活。因为已经赋值给y了
        
          int a=(int)(Math.random()*10+1);//(二)
          System.out.println(a);
         
            
        

    }

}

  

 

相关文章:

  • 2021-08-14
  • 2022-01-06
  • 2021-12-24
猜你喜欢
  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-12-28
相关资源
相似解决方案