ahpu139

|博客班级 | https://edu.cnblogs.com/campus/ahgc/AHPU-SE-19/ |
|作业要求 | https://edu.cnblogs.com/campus/ahgc/AHPU-SE-19/homework/11376|
|作业目标 | 写一个能自动生成小学四则运算题目的程序 |
|学号 | 3190704130 |

代码如下:

//main函数所在区域主要实现生成问题
`package xiaohu;
import java.util.Scanner;
public class CT {
public static String str = "";
public static int num = 5;
public static int num_i = 0;
public static int numberRange = 100;
public static double sum = 0;
public static void main(String[] args) {
System.out.println("当然是小胡啦");
System.out.println("控制台实现出题判断");
System.out.println("注意:结果保留1位小数!");
System.out.println("共10道题目:");
Scanner in = new Scanner(System.in);
double answer = 0;
double result = 0;
String[] question = new String[10];
int questionNumber = 0;
int answerTrue = 0;
boolean flag;
for(;

分类:

技术点:

相关文章:

  • 2021-08-08
  • 2022-01-01
  • 2022-01-01
  • 2022-01-01
  • 2021-11-29
  • 2021-08-29
  • 2021-12-02
猜你喜欢
  • 2022-01-01
  • 2022-01-01
  • 2022-01-01
  • 2021-09-10
  • 2022-01-01
  • 2019-09-09
  • 2021-12-31
相关资源
相似解决方案