Modify the program from the previous question so that instead of always asking for four numbers.
问题描述:
Modify the program from the previous question so that instead of always asking for four numbers.
Modify the program from the previous question so that instead of always asking for four numbers,it first asks the user how many numbers they want to enter and then has them enter that many.
答
修改上题中的程序,使得它不再总是要求输入四个数字,而是首先问用户想输入多少个数,然后让用户输入那么多个数.
(就是从固定的输入四个数变成用户指定输入几个数.第一次用户输入的是数字的总数,然后再输入具体数字.)其实我把分类弄错了, 应该归Python类的。。。。。