9.11

上午无课,依照民间大学生生活条例,睡过去就好,下午按课表接受建民的教育
package com;
import java.util.Random;
import java.util.Scanner;
public class scx {
    public static void main(String[] args)
    {
        Random r = new Random();
        int rand;
        for(int i=0;i<30;i++)
        {
            int r1=r.nextInt(100);
            int r2=r.nextInt(100);
            rand=r2%4;
            if(rand==0)
            {
                System.out.println(r1+"+" +r2+"=" );
            }
            else if(rand==1)
            {
                System.out.println(r1+"-" +r2+"=" );
            }
            else if(rand==2)
            {
                System.out.println(r1+"x" +r2+"=" );
            }
            else if(rand==3)
            {
                System.out.println(r1+"/" +r2+"=" );
            }
        }
    }
}
以上为教育结果,敬请过目
posted @ 2023-09-11 21:00  SDGVSBGDRH  阅读(18)  评论(0)    收藏  举报