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.
人气:378 ℃ 时间:2020-06-30 07:59:10
解答
修改上题中的程序,使得它不再总是要求输入四个数字,而是首先问用户想输入多少个数,然后让用户输入那么多个数.
(就是从固定的输入四个数变成用户指定输入几个数.第一次用户输入的是数字的总数,然后再输入具体数字.)其实我把分类弄错了, 应该归Python类的。。。。。
推荐
猜你喜欢
- 八年级寒假作业英语
- 语法分析选错4---diverse
- 在四边形ABCD中,AC,BD相交于点O,且AC=BD,E,F分别是AD,BC的中点,EF分别交BD,AC与点M,N,求证OM=ON
- 实验小学要修一个操场.为了使工程能提前3天完成,须把原定工效提高12%.原计划完成这一工程用_ 天.
- 鞋匠的儿子为题目好吗?
- 一道化学配平题
- 已知函数y=2sin(2x-π/3) 当x属于[π/12,π/3]时,y的取值范围?此函数由y
- 植物的茎的主要特征?可以分为几种类型?有哪些变态类型?