package one;
import java.util.Random;
public class jisuanqi {
public static void main(String[] args) {
Random random = new Random();
for (int parameter = 1; parameter <= 300; parameter++) {
int algorithm = random.nextInt(4);
int num1 = random.nextInt(10);
int num2 = random.nextInt(10);
switch (algorithm) {
case 0:
System.out.println(num1 + "+" + num2 + "=" );
break;
case 1:
System.out.println(num1 + "-" + num2 + "=" );
break;
case 2:
System.out.println(num1 + "*" + num2 + "=" );
break;
case 3:
if (num2 == 0) {
parameter--;
break;
} else {
System.out.println(num1 + "/" + num2 + "=");
}
break;
default:
break;
}
}
}
}