我想要一个程序,它首先询问数组的大小,然后询问元素。数组的大小是 int,存储的值是 double。像这样:
How many numbers? 5 // 5 is user input
Please type the numbers:
1,111
4
11,45
21
3
The numbers in reverse order are:
3.0 21.0 11.45 4.0 1.111
我的问题是,如何询问尺寸和元素?提前致谢!
蓝山帝景
相关分类