3.2(游戏:将三个数相加)程序清单3-1中的程序产生两个整数,并提示用户输入这两个整数的和。修改该程序使之能产生三个个位数整数,然后提示用户输入这三个整数的和。 3.2(Game: add three numbers) The program in Listing 3.1, AdditionQuiz.java, generates two integers and prompts the user to enter the summation of these two integers. Revise the program to generate three single-digit integers and prompt the user to enter the summation of these three integers.
第三章第二题(游戏:将三个数相加)(game:add three numbers)3.2(游戏:将三个数相加)程序清单3-1中的程序产生两个整数,并提示用户输入这两个整数的和。修改该程序使之能产生三个个位数整数,然后提示用户输入这三个整数的和。3.2(Game: add three numbers) The program in Listing 3.1, AdditionQuiz.java, generates two integers and prompts the user to enter th